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

; 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 }
%"class.std::vector.152" = type { %"struct.std::_Vector_base.153" }
%"struct.std::_Vector_base.153" = type { %"struct.std::_Vector_base<std::pair<AST::Pattern, TypeRef>, std::allocator<std::pair<AST::Pattern, TypeRef>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<AST::Pattern, TypeRef>, std::allocator<std::pair<AST::Pattern, TypeRef>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<AST::Pattern, TypeRef>, std::allocator<std::pair<AST::Pattern, TypeRef>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<AST::Pattern, TypeRef>, std::allocator<std::pair<AST::Pattern, TypeRef>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.157" = type { ptr }
%"struct.std::pair.158" = type { %"class.AST::Pattern", %class.TypeRef }
%"struct.AST::ExprNode_Closure" = type <{ %"class.AST::ExprNode", %"class.std::vector.152", %class.TypeRef, %"class.AST::ExprNodeP", i8, i8, [6 x i8] }>
%"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 }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3AST9ExprNodePptEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 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) #2

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

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

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

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: 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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIN3AST7PatternE7TypeRefESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3AST16ExprNode_Closure5cloneEv(ptr dead_on_unwind noalias writable sret(%"class.AST::ExprNodeP") align 8 %0, ptr noundef nonnull align 8 dereferenceable(194) %1) unnamed_addr #8 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::vector.152", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.157", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.157", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.std::pair.158", align 8
  %11 = alloca %"class.AST::Pattern", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %class.TypeRef, align 8
  %15 = alloca %"class.std::vector.152", align 8
  %16 = alloca %class.TypeRef, align 8
  %17 = alloca %"class.AST::ExprNodeP", align 8
  %18 = alloca i1, align 1
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #9
  call void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %20 = getelementptr inbounds %"struct.AST::ExprNode_Closure", ptr %19, i32 0, i32 1
  store ptr %20, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = call ptr @_ZNKSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #9
  %23 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.157", ptr %7, i32 0, i32 0
  store ptr %22, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call ptr @_ZNKSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #9
  %26 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.157", ptr %8, i32 0, i32 0
  store ptr %25, ptr %26, align 8
  br label %27

27:                                               ; preds = %40, %2
  %28 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIN3AST7PatternE7TypeRefESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  br i1 %28, label %30, label %29

29:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  br label %61

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %31 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIN3AST7PatternE7TypeRefESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  store ptr %31, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 664, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 544, ptr %11) #9
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.std::pair.158", ptr %32, i32 0, i32 0
  invoke void @_ZNK3AST7Pattern5cloneEv(ptr dead_on_unwind writable sret(%"class.AST::Pattern") align 8 %11, ptr noundef nonnull align 8 dereferenceable(544) %33)
          to label %34 unwind label %42

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 120, ptr %14) #9
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.std::pair.158", ptr %35, i32 0, i32 1
  invoke void @_ZNK7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%class.TypeRef) align 8 %14, ptr noundef nonnull align 8 dereferenceable(120) %36)
          to label %37 unwind label %46

37:                                               ; preds = %34
  invoke void @_ZSt9make_pairIN3AST7PatternE7TypeRefESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind writable sret(%"struct.std::pair.158") align 8 %10, ptr noundef nonnull align 8 dereferenceable(544) %11, ptr noundef nonnull align 8 dereferenceable(120) %14)
          to label %38 unwind label %50

38:                                               ; preds = %37
  invoke void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(664) %10)
          to label %39 unwind label %54

39:                                               ; preds = %38
  call void @_ZNSt4pairIN3AST7PatternE7TypeRefED2Ev(ptr noundef nonnull align 8 dereferenceable(664) %10) #9
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %14) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %14) #9
  call void @_ZN3AST7PatternD1Ev(ptr noundef nonnull align 8 dereferenceable(544) %11) #9
  call void @llvm.lifetime.end.p0(i64 544, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 664, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %40

40:                                               ; preds = %39
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIN3AST7PatternE7TypeRefESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br label %27

42:                                               ; preds = %30
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %12, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %13, align 4
  br label %60

46:                                               ; preds = %34
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %12, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %13, align 4
  br label %59

50:                                               ; preds = %37
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %12, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %13, align 4
  br label %58

54:                                               ; preds = %38
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %12, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %13, align 4
  call void @_ZNSt4pairIN3AST7PatternE7TypeRefED2Ev(ptr noundef nonnull align 8 dereferenceable(664) %10) #9
  br label %58

58:                                               ; preds = %54, %50
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %14) #9
  br label %59

59:                                               ; preds = %58, %46
  call void @llvm.lifetime.end.p0(i64 120, ptr %14) #9
  call void @_ZN3AST7PatternD1Ev(ptr noundef nonnull align 8 dereferenceable(544) %11) #9
  br label %60

60:                                               ; preds = %59, %42
  call void @llvm.lifetime.end.p0(i64 544, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 664, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  br label %104

61:                                               ; preds = %29
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3AST8ExprNode4spanEv(ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %63 unwind label %83

63:                                               ; preds = %61
  %64 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 200) #10
          to label %65 unwind label %83

65:                                               ; preds = %63
  store i1 true, ptr %18, align 1
  call void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %66 = getelementptr inbounds %"struct.AST::ExprNode_Closure", ptr %19, i32 0, i32 2
  invoke void @_ZNK7TypeRef5cloneEv(ptr dead_on_unwind writable sret(%class.TypeRef) align 8 %16, ptr noundef nonnull align 8 dereferenceable(120) %66)
          to label %67 unwind label %87

67:                                               ; preds = %65
  %68 = getelementptr inbounds %"struct.AST::ExprNode_Closure", ptr %19, i32 0, i32 3
  %69 = invoke noundef ptr @_ZNK3AST9ExprNodePptEv(ptr noundef nonnull align 8 dereferenceable(8) %68)
          to label %70 unwind label %91

70:                                               ; preds = %67
  %71 = load ptr, ptr %69, align 8, !tbaa !9
  %72 = getelementptr inbounds ptr, ptr %71, i64 4
  %73 = load ptr, ptr %72, align 8
  invoke void %73(ptr dead_on_unwind writable sret(%"class.AST::ExprNodeP") align 8 %17, ptr noundef nonnull align 8 dereferenceable(40) %69)
          to label %74 unwind label %91

74:                                               ; preds = %70
  %75 = getelementptr inbounds %"struct.AST::ExprNode_Closure", ptr %19, i32 0, i32 4
  %76 = load i8, ptr %75, align 8, !tbaa !11, !range !29, !noundef !30
  %77 = trunc i8 %76 to i1
  %78 = getelementptr inbounds %"struct.AST::ExprNode_Closure", ptr %19, i32 0, i32 5
  %79 = load i8, ptr %78, align 1, !tbaa !31, !range !29, !noundef !30
  %80 = trunc i8 %79 to i1
  invoke void @_ZN3AST16ExprNode_ClosureC2ESt6vectorISt4pairINS_7PatternE7TypeRefESaIS5_EES4_NS_9ExprNodePEbb(ptr noundef nonnull align 8 dereferenceable(194) %64, ptr noundef %15, ptr noundef %16, ptr noundef %17, i1 noundef zeroext %77, i1 noundef zeroext %80)
          to label %81 unwind label %95

81:                                               ; preds = %74
  store i1 false, ptr %18, 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) %62, ptr noundef %64)
          to label %82 unwind label %95

82:                                               ; preds = %81
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %16) #9
  call void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  call void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #9
  ret void

83:                                               ; preds = %63, %61
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %12, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %13, align 4
  br label %104

87:                                               ; preds = %65
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %12, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %13, align 4
  br label %100

91:                                               ; preds = %70, %67
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %12, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %13, align 4
  br label %99

95:                                               ; preds = %81, %74
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %12, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %13, align 4
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  br label %99

99:                                               ; preds = %95, %91
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %16) #9
  br label %100

100:                                              ; preds = %99, %87
  call void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #9
  %101 = load i1, ptr %18, align 1
  br i1 %101, label %102, label %103

102:                                              ; preds = %100
  call void @_ZdlPvm(ptr noundef %64, i64 noundef 200) #11
  br label %103

103:                                              ; preds = %102, %100
  br label %104

104:                                              ; preds = %103, %83, %60
  call void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #9
  br label %105

105:                                              ; preds = %104
  %106 = load ptr, ptr %12, align 8
  %107 = load i32, ptr %13, align 4
  %108 = insertvalue { ptr, i32 } poison, ptr %106, 0
  %109 = insertvalue { ptr, i32 } %108, i32 %107, 1
  resume { ptr, i32 } %109
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIN3AST7PatternE7TypeRefESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.158") align 8, ptr noundef nonnull align 8 dereferenceable(544), ptr noundef nonnull align 8 dereferenceable(120)) #8

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

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

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

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

declare void @_ZN3AST9ExprNodePD1Ev(ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 #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 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { 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}
!11 = !{!12, !28, i64 192}
!12 = !{!"_ZTSN3AST16ExprNode_ClosureE", !13, i64 0, !20, i64 40, !24, i64 64, !27, i64 184, !28, i64 192, !28, i64 193}
!13 = !{!"_ZTSN3AST8ExprNodeE", !14, i64 8, !19, i64 32}
!14 = !{!"_ZTSN3AST13AttributeListE", !15, i64 0}
!15 = !{!"_ZTSSt6vectorIN3AST9AttributeESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN3AST9AttributeESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN3AST9AttributeESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN3AST9AttributeESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTS4Span", !6, i64 0}
!20 = !{!"_ZTSSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseISt4pairIN3AST7PatternE7TypeRefESaIS4_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt4pairIN3AST7PatternE7TypeRefESaIS4_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseISt4pairIN3AST7PatternE7TypeRefESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTS7TypeRef", !19, i64 0, !25, i64 8}
!25 = !{!"_ZTS8TypeData", !26, i64 0, !7, i64 8}
!26 = !{!"_ZTSN8TypeData3TagE", !7, i64 0}
!27 = !{!"_ZTSN3AST9ExprNodePE", !6, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!12, !28, i64 193}


; 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 }
%"class.std::vector.152" = type { %"struct.std::_Vector_base.153" }
%"struct.std::_Vector_base.153" = type { %"struct.std::_Vector_base<std::pair<AST::Pattern, TypeRef>, std::allocator<std::pair<AST::Pattern, TypeRef>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<AST::Pattern, TypeRef>, std::allocator<std::pair<AST::Pattern, TypeRef>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<AST::Pattern, TypeRef>, std::allocator<std::pair<AST::Pattern, TypeRef>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<AST::Pattern, TypeRef>, std::allocator<std::pair<AST::Pattern, TypeRef>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.157" = type { ptr }
%"struct.std::pair.158" = type { %"class.AST::Pattern", %class.TypeRef }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3AST9ExprNodePptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 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 #2

; 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 #1 align 2

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

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

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: 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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIN3AST7PatternE7TypeRefESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3AST16ExprNode_Closure5cloneEv(ptr dead_on_unwind noalias writable sret(%"class.AST::ExprNodeP") align 8 %0, ptr noundef nonnull align 8 dereferenceable(194) %1) unnamed_addr #8 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.152", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.157", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.157", align 8
  %6 = alloca %"struct.std::pair.158", align 8
  %7 = alloca %"class.AST::Pattern", align 8
  %8 = alloca %class.TypeRef, align 8
  %9 = alloca %"class.std::vector.152", align 8
  %10 = alloca %class.TypeRef, align 8
  %11 = alloca %"class.AST::ExprNodeP", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  call void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %12 = getelementptr inbounds i8, ptr %1, i64 40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %13 = call ptr @_ZNKSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  store ptr %13, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %14 = call ptr @_ZNKSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #9
  store ptr %14, ptr %5, align 8
  %15 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIN3AST7PatternE7TypeRefESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  br i1 %15, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %23, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3AST8ExprNode4spanEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %17 = invoke noalias noundef nonnull dereferenceable(200) ptr @_Znwm(i64 noundef 200) #10
          to label %37 unwind label %54

.lr.ph:                                           ; preds = %2, %23
  %18 = call noundef nonnull align 8 dereferenceable(664) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIN3AST7PatternE7TypeRefESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 664, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 544, ptr nonnull %7) #9
  invoke void @_ZNK3AST7Pattern5cloneEv(ptr dead_on_unwind nonnull writable sret(%"class.AST::Pattern") align 8 %7, ptr noundef nonnull align 8 dereferenceable(544) %18)
          to label %19 unwind label %26

19:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %8) #9
  %20 = getelementptr inbounds i8, ptr %18, i64 544
  invoke void @_ZNK7TypeRef5cloneEv(ptr dead_on_unwind nonnull writable sret(%class.TypeRef) align 8 %8, ptr noundef nonnull align 8 dereferenceable(120) %20)
          to label %21 unwind label %28

21:                                               ; preds = %19
  invoke void @_ZSt9make_pairIN3AST7PatternE7TypeRefESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.158") align 8 %6, ptr noundef nonnull align 8 dereferenceable(544) %7, ptr noundef nonnull align 8 dereferenceable(120) %8)
          to label %22 unwind label %30

22:                                               ; preds = %21
  invoke void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(664) %6)
          to label %23 unwind label %32

23:                                               ; preds = %22
  call void @_ZNSt4pairIN3AST7PatternE7TypeRefED2Ev(ptr noundef nonnull align 8 dereferenceable(664) %6) #9
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %8) #9
  call void @_ZN3AST7PatternD1Ev(ptr noundef nonnull align 8 dereferenceable(544) %7) #9
  call void @llvm.lifetime.end.p0(i64 544, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 664, ptr nonnull %6) #9
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIN3AST7PatternE7TypeRefESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt4pairIN3AST7PatternE7TypeRefESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  br i1 %25, label %.lr.ph, label %._crit_edge

26:                                               ; preds = %.lr.ph
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %36

28:                                               ; preds = %19
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %35

30:                                               ; preds = %21
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %34

32:                                               ; preds = %22
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIN3AST7PatternE7TypeRefED2Ev(ptr noundef nonnull align 8 dereferenceable(664) %6) #9
  br label %34

34:                                               ; preds = %32, %30
  %.pn18 = phi { ptr, i32 } [ %33, %32 ], [ %31, %30 ]
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #9
  br label %35

35:                                               ; preds = %34, %28
  %.pn18.pn = phi { ptr, i32 } [ %.pn18, %34 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %8) #9
  call void @_ZN3AST7PatternD1Ev(ptr noundef nonnull align 8 dereferenceable(544) %7) #9
  br label %36

36:                                               ; preds = %35, %26
  %.pn18.pn.pn = phi { ptr, i32 } [ %.pn18.pn, %35 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 544, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 664, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  br label %63

37:                                               ; preds = %._crit_edge
  call void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %38 = getelementptr inbounds i8, ptr %1, i64 64
  invoke void @_ZNK7TypeRef5cloneEv(ptr dead_on_unwind nonnull writable sret(%class.TypeRef) align 8 %10, ptr noundef nonnull align 8 dereferenceable(120) %38)
          to label %39 unwind label %.thread

39:                                               ; preds = %37
  %40 = getelementptr inbounds i8, ptr %1, i64 184
  %41 = call noundef ptr @_ZNK3AST9ExprNodePptEv(ptr noundef nonnull align 8 dereferenceable(8) %40)
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 32
  %44 = load ptr, ptr %43, align 8
  invoke void %44(ptr dead_on_unwind nonnull writable sret(%"class.AST::ExprNodeP") align 8 %11, ptr noundef nonnull align 8 dereferenceable(40) %41)
          to label %45 unwind label %57

45:                                               ; preds = %39
  %46 = getelementptr inbounds i8, ptr %1, i64 192
  %47 = load i8, ptr %46, align 8, !tbaa !8, !range !28, !noundef !29
  %48 = trunc nuw i8 %47 to i1
  %49 = getelementptr inbounds i8, ptr %1, i64 193
  %50 = load i8, ptr %49, align 1, !tbaa !30, !range !28, !noundef !29
  %51 = trunc nuw i8 %50 to i1
  invoke void @_ZN3AST16ExprNode_ClosureC2ESt6vectorISt4pairINS_7PatternE7TypeRefESaIS5_EES4_NS_9ExprNodePEbb(ptr noundef nonnull align 8 dereferenceable(194) %17, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, i1 noundef zeroext %48, i1 noundef zeroext %51)
          to label %52 unwind label %59

52:                                               ; preds = %45
  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) %16, ptr noundef nonnull %17)
          to label %53 unwind label %59

53:                                               ; preds = %52
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %10) #9
  call void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  ret void

54:                                               ; preds = %._crit_edge
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %63

.thread:                                          ; preds = %37
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  br label %62

57:                                               ; preds = %39
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %61

59:                                               ; preds = %52, %45
  %.0 = phi i1 [ false, %52 ], [ true, %45 ]
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3AST9ExprNodePD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  br label %61

61:                                               ; preds = %57, %59
  %.pn = phi { ptr, i32 } [ %60, %59 ], [ %58, %57 ]
  %.1 = phi i1 [ %.0, %59 ], [ true, %57 ]
  call void @_ZN7TypeRefD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %10) #9
  call void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  br i1 %.1, label %62, label %63

62:                                               ; preds = %.thread, %61
  %.pn.pn25 = phi { ptr, i32 } [ %56, %.thread ], [ %.pn, %61 ]
  call void @_ZdlPvm(ptr noundef nonnull %17, i64 noundef 200) #11
  br label %63

63:                                               ; preds = %61, %62, %54, %36
  %.pn18.pn.pn.pn = phi { ptr, i32 } [ %.pn18.pn.pn, %36 ], [ %.pn.pn25, %62 ], [ %.pn, %61 ], [ %55, %54 ]
  call void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn18.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(664)) local_unnamed_addr #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIN3AST7PatternE7TypeRefESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.158") align 8, ptr noundef nonnull align 8 dereferenceable(544), ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #8

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

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

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

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

declare void @_ZN3AST9ExprNodePD1Ev(ptr) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 #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 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { 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"}
!8 = !{!9, !27, i64 192}
!9 = !{!"_ZTSN3AST16ExprNode_ClosureE", !10, i64 0, !19, i64 40, !23, i64 64, !26, i64 184, !27, i64 192, !27, i64 193}
!10 = !{!"_ZTSN3AST8ExprNodeE", !11, i64 8, !18, i64 32}
!11 = !{!"_ZTSN3AST13AttributeListE", !12, i64 0}
!12 = !{!"_ZTSSt6vectorIN3AST9AttributeESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN3AST9AttributeESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN3AST9AttributeESaIS1_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN3AST9AttributeESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !17, i64 0}
!17 = !{!"omnipotent char", !7, i64 0}
!18 = !{!"_ZTS4Span", !16, i64 0}
!19 = !{!"_ZTSSt6vectorISt4pairIN3AST7PatternE7TypeRefESaIS4_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseISt4pairIN3AST7PatternE7TypeRefESaIS4_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt4pairIN3AST7PatternE7TypeRefESaIS4_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt4pairIN3AST7PatternE7TypeRefESaIS4_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!23 = !{!"_ZTS7TypeRef", !18, i64 0, !24, i64 8}
!24 = !{!"_ZTS8TypeData", !25, i64 0, !17, i64 8}
!25 = !{!"_ZTSN8TypeData3TagE", !17, i64 0}
!26 = !{!"_ZTSN3AST9ExprNodePE", !16, i64 0}
!27 = !{!"bool", !17, i64 0}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!9, !27, i64 193}


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