; LLVM IR from jzimmerman/langcc :: gen/cc (gen)

; 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"

%"struct.langcc::rc_ptr.37" = type { ptr, ptr }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"struct.langcc::rc_ptr.45" = type { ptr, ptr }
%"struct.langcc::rc_ptr.21" = type { ptr, ptr }
%"class.std::function.555" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"struct.langcc::TokenBounds" = type { i32, i32 }
%"struct.lang::cc::Node::Decl::UsingAlias::tmpl::item::args::item::_T" = type { %"struct.lang::cc::Node::_T", i8, %"struct.langcc::rc_ptr.45" }
%"struct.lang::cc::Node::_T" = type { ptr, %"struct.langcc::hash_obj", %"struct.langcc::enable_rc_from_this_poly", i32, i64, %"struct.langcc::TokenBounds", i8, i64, %"struct.langcc::ParserAttrMask", %"struct.langcc::ParserLookahead" }
%"struct.langcc::hash_obj" = type { %"struct.langcc::Option::_T" }
%"struct.langcc::Option::_T" = type { i32, [32 x i8] }
%"struct.langcc::enable_rc_from_this_poly" = type { 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item4makeElN6langcc11TokenBoundsEblNS8_14ParserAttrMaskENS8_15ParserLookaheadEbNS8_6rc_ptrINS1_4Expr2_TEEE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.37") align 8, i64 noundef, i64, i1 noundef zeroext, i64 noundef, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8, i1 noundef zeroext, ptr noundef) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z18xform_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEESt8functionIFNS0_INS3_2_TEEES9_EE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.45") align 8, ptr noundef, ptr noundef) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFN6langcc6rc_ptrIN4lang2cc4Node2_TEEES6_EEclES6_(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.21") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19xformT_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEESt8functionIFNS0_INS3_2_TEEESE_EE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.21") align 8 %0, ptr noundef %1, ptr noundef %2) #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.langcc::rc_ptr.45", align 8
  %8 = alloca %"struct.langcc::rc_ptr.45", align 8
  %9 = alloca %"class.std::function.555", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.langcc::rc_ptr.37", align 8
  %13 = alloca %"struct.langcc::TokenBounds", align 4
  %14 = alloca %"struct.langcc::ParserAttrMask", align 8
  %15 = alloca %"struct.langcc::ParserLookahead", align 8
  %16 = alloca %"struct.langcc::rc_ptr.45", align 8
  %17 = alloca %"struct.langcc::rc_ptr.21", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  %18 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %19 = getelementptr inbounds %"struct.lang::cc::Node::Decl::UsingAlias::tmpl::item::args::item::_T", ptr %18, i32 0, i32 2
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %19)
  invoke void @_ZNSt8functionIFN6langcc6rc_ptrIN4lang2cc4Node2_TEEES6_EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %20 unwind label %54

20:                                               ; preds = %3
  invoke void @_Z18xform_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEESt8functionIFNS0_INS3_2_TEEES9_EE(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.45") align 8 %7, ptr noundef %8, ptr noundef %9)
          to label %21 unwind label %58

21:                                               ; preds = %20
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %22 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %23 unwind label %63

23:                                               ; preds = %21
  %24 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %22, i32 0, i32 4
  %25 = load i64, ptr %24, align 8, !tbaa !9
  %26 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %27 unwind label %63

27:                                               ; preds = %23
  %28 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %26, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %28, i64 8, i1 false), !tbaa.struct !22
  %29 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %30 unwind label %63

30:                                               ; preds = %27
  %31 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %29, i32 0, i32 6
  %32 = load i8, ptr %31, align 8, !tbaa !24, !range !25, !noundef !26
  %33 = trunc i8 %32 to i1
  %34 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %35 unwind label %63

35:                                               ; preds = %30
  %36 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %34, i32 0, i32 7
  %37 = load i64, ptr %36, align 8, !tbaa !27
  %38 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %39 unwind label %63

39:                                               ; preds = %35
  %40 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %38, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %14, ptr align 8 %40, i64 16, i1 false), !tbaa.struct !28
  %41 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %42 unwind label %63

42:                                               ; preds = %39
  %43 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %41, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %15, ptr align 8 %43, i64 16, i1 false), !tbaa.struct !28
  %44 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %45 unwind label %63

45:                                               ; preds = %42
  %46 = getelementptr inbounds %"struct.lang::cc::Node::Decl::UsingAlias::tmpl::item::args::item::_T", ptr %44, i32 0, i32 1
  %47 = load i8, ptr %46, align 8, !tbaa !30, !range !25, !noundef !26
  %48 = trunc i8 %47 to i1
  invoke void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %49 unwind label %63

49:                                               ; preds = %45
  %50 = load i64, ptr %13, align 4
  invoke void @_ZN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item4makeElN6langcc11TokenBoundsEblNS8_14ParserAttrMaskENS8_15ParserLookaheadEbNS8_6rc_ptrINS1_4Expr2_TEEE(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.37") align 8 %12, i64 noundef %25, i64 %50, i1 noundef zeroext %33, i64 noundef %37, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8 %14, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8 %15, i1 noundef zeroext %48, ptr noundef %16)
          to label %51 unwind label %67

51:                                               ; preds = %49
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  invoke void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEEC2INS3_4Decl10UsingAlias4tmpl4item4args4item2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISF_EE(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %52 unwind label %71

52:                                               ; preds = %51
  invoke void @_ZNKSt8functionIFN6langcc6rc_ptrIN4lang2cc4Node2_TEEES6_EEclES6_(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.21") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef %17)
          to label %53 unwind label %75

53:                                               ; preds = %52
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  ret void

54:                                               ; preds = %3
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %10, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %11, align 4
  br label %62

58:                                               ; preds = %20
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %10, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %11, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  br label %62

62:                                               ; preds = %58, %54
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  br label %81

63:                                               ; preds = %45, %42, %39, %35, %30, %27, %23, %21
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %10, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %11, align 4
  br label %80

67:                                               ; preds = %49
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %10, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %11, align 4
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  br label %80

71:                                               ; preds = %51
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %10, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %11, align 4
  br label %79

75:                                               ; preds = %52
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %10, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %11, align 4
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #5
  br label %79

79:                                               ; preds = %75, %71
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  br label %80

80:                                               ; preds = %79, %67, %63
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br label %81

81:                                               ; preds = %80, %62
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  br label %82

82:                                               ; preds = %81
  %83 = load ptr, ptr %10, align 8
  %84 = load i32, ptr %11, align 4
  %85 = insertvalue { ptr, i32 } poison, ptr %83, 0
  %86 = insertvalue { ptr, i32 } %85, i32 %84, 1
  resume { ptr, i32 } %86
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !16, i64 72}
!10 = !{!"_ZTSN4lang2cc4Node2_TE", !11, i64 8, !14, i64 48, !15, i64 64, !16, i64 72, !17, i64 80, !19, i64 88, !16, i64 96, !20, i64 104, !21, i64 120}
!11 = !{!"_ZTSN6langcc8hash_objE", !12, i64 0}
!12 = !{!"_ZTSN6langcc6Option2_TINS_7HashValEEE", !13, i64 0, !7, i64 4}
!13 = !{!"_ZTSN6langcc6Option2_WE", !7, i64 0}
!14 = !{!"_ZTSN6langcc24enable_rc_from_this_polyE", !6, i64 0, !6, i64 8}
!15 = !{!"_ZTSN4lang2cc4Node2_WE", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN6langcc11TokenBoundsE", !18, i64 0, !18, i64 4}
!18 = !{!"int", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN6langcc14ParserAttrMaskE", !7, i64 0}
!21 = !{!"_ZTSN6langcc15ParserLookaheadE", !7, i64 0}
!22 = !{i64 0, i64 4, !23, i64 4, i64 4, !23}
!23 = !{!18, !18, i64 0}
!24 = !{!10, !19, i64 88}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!10, !16, i64 96}
!28 = !{i64 0, i64 16, !29}
!29 = !{!7, !7, i64 0}
!30 = !{!31, !19, i64 136}
!31 = !{!"_ZTSN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TE", !10, i64 0, !19, i64 136, !32, i64 144}
!32 = !{!"_ZTSN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEE", !6, i64 0, !6, i64 8}


; 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"

%"struct.langcc::rc_ptr.37" = type { ptr, ptr }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"struct.langcc::rc_ptr.45" = type { ptr, ptr }
%"struct.langcc::rc_ptr.21" = type { ptr, ptr }
%"class.std::function.555" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

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 nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item4makeElN6langcc11TokenBoundsEblNS8_14ParserAttrMaskENS8_15ParserLookaheadEbNS8_6rc_ptrINS1_4Expr2_TEEE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.37") align 8, i64 noundef, i64, i1 noundef zeroext, i64 noundef, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8, i1 noundef zeroext, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z18xform_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEESt8functionIFNS0_INS3_2_TEEES9_EE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.45") align 8, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFN6langcc6rc_ptrIN4lang2cc4Node2_TEEES6_EEclES6_(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.21") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19xformT_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEESt8functionIFNS0_INS3_2_TEEESE_EE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.21") align 8 %0, ptr noundef nonnull %1, ptr noundef %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.langcc::rc_ptr.45", align 8
  %5 = alloca %"struct.langcc::rc_ptr.45", align 8
  %6 = alloca %"class.std::function.555", align 8
  %7 = alloca %"struct.langcc::rc_ptr.37", align 8
  %8 = alloca %"struct.langcc::ParserAttrMask", align 8
  %9 = alloca %"struct.langcc::ParserLookahead", align 8
  %10 = alloca %"struct.langcc::rc_ptr.45", align 8
  %11 = alloca %"struct.langcc::rc_ptr.21", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  %12 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %13 = getelementptr inbounds i8, ptr %12, i64 144
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %13)
  invoke void @_ZNSt8functionIFN6langcc6rc_ptrIN4lang2cc4Node2_TEEES6_EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %14 unwind label %38

14:                                               ; preds = %3
  invoke void @_Z18xform_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEESt8functionIFNS0_INS3_2_TEEES9_EE(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.45") align 8 %4, ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %15 unwind label %40

15:                                               ; preds = %14
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %16 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %17 = getelementptr inbounds i8, ptr %16, i64 72
  %18 = load i64, ptr %17, align 8, !tbaa !5
  %19 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %20 = getelementptr inbounds i8, ptr %19, i64 80
  %.sroa.0.0.copyload = load i64, ptr %20, align 8
  %21 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %22 = getelementptr inbounds i8, ptr %21, i64 88
  %23 = load i8, ptr %22, align 8, !tbaa !21, !range !22, !noundef !23
  %24 = trunc nuw i8 %23 to i1
  %25 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %26 = getelementptr inbounds i8, ptr %25, i64 96
  %27 = load i64, ptr %26, align 8, !tbaa !24
  %28 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %29 = getelementptr inbounds i8, ptr %28, i64 104
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %29, i64 16, i1 false), !tbaa.struct !25
  %30 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %31 = getelementptr inbounds i8, ptr %30, i64 120
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %31, i64 16, i1 false), !tbaa.struct !25
  %32 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %33 = getelementptr inbounds i8, ptr %32, i64 136
  %34 = load i8, ptr %33, align 8, !tbaa !27, !range !22, !noundef !23
  %35 = trunc nuw i8 %34 to i1
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %4)
  invoke void @_ZN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item4makeElN6langcc11TokenBoundsEblNS8_14ParserAttrMaskENS8_15ParserLookaheadEbNS8_6rc_ptrINS1_4Expr2_TEEE(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.37") align 8 %7, i64 noundef %18, i64 %.sroa.0.0.copyload, i1 noundef zeroext %24, i64 noundef %27, ptr noundef nonnull byval(%"struct.langcc::ParserAttrMask") align 8 %8, ptr noundef nonnull byval(%"struct.langcc::ParserLookahead") align 8 %9, i1 noundef zeroext %35, ptr noundef nonnull %10)
          to label %36 unwind label %42

36:                                               ; preds = %15
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEEC2INS3_4Decl10UsingAlias4tmpl4item4args4item2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISF_EE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %7)
  invoke void @_ZNKSt8functionIFN6langcc6rc_ptrIN4lang2cc4Node2_TEEES6_EEclES6_(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.21") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull %11)
          to label %37 unwind label %44

37:                                               ; preds = %36
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  ret void

38:                                               ; preds = %3
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %47

40:                                               ; preds = %14
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  br label %47

42:                                               ; preds = %15
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  br label %46

44:                                               ; preds = %36
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br label %46

46:                                               ; preds = %44, %42
  %.pn5 = phi { ptr, i32 } [ %45, %44 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %47

47:                                               ; preds = %38, %40, %46
  %.sink = phi ptr [ %4, %46 ], [ %5, %40 ], [ %5, %38 ]
  %.pn5.pn = phi { ptr, i32 } [ %.pn5, %46 ], [ %41, %40 ], [ %39, %38 ]
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.sink) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn5.pn
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !15, i64 72}
!6 = !{!"_ZTSN4lang2cc4Node2_TE", !7, i64 8, !12, i64 48, !14, i64 64, !15, i64 72, !16, i64 80, !18, i64 88, !15, i64 96, !19, i64 104, !20, i64 120}
!7 = !{!"_ZTSN6langcc8hash_objE", !8, i64 0}
!8 = !{!"_ZTSN6langcc6Option2_TINS_7HashValEEE", !9, i64 0, !10, i64 4}
!9 = !{!"_ZTSN6langcc6Option2_WE", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN6langcc24enable_rc_from_this_polyE", !13, i64 0, !13, i64 8}
!13 = !{!"any pointer", !10, i64 0}
!14 = !{!"_ZTSN4lang2cc4Node2_WE", !10, i64 0}
!15 = !{!"long", !10, i64 0}
!16 = !{!"_ZTSN6langcc11TokenBoundsE", !17, i64 0, !17, i64 4}
!17 = !{!"int", !10, i64 0}
!18 = !{!"bool", !10, i64 0}
!19 = !{!"_ZTSN6langcc14ParserAttrMaskE", !10, i64 0}
!20 = !{!"_ZTSN6langcc15ParserLookaheadE", !10, i64 0}
!21 = !{!6, !18, i64 88}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!6, !15, i64 96}
!25 = !{i64 0, i64 16, !26}
!26 = !{!10, !10, i64 0}
!27 = !{!28, !18, i64 136}
!28 = !{!"_ZTSN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TE", !6, i64 0, !18, i64 136, !29, i64 144}
!29 = !{!"_ZTSN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEE", !13, i64 0, !13, i64 8}


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