; 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.154" = type { ptr, ptr }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"struct.langcc::TokenBounds" = type { i32, i32 }
%"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 }
%"struct.lang::cc::Node::Decl::Fun::_T" = type { %"struct.lang::cc::Node::Decl::_T.base", %"struct.langcc::rc_ptr.420", %"struct.langcc::rc_ptr.200", %"struct.langcc::Option::_T.416", %"struct.langcc::rc_ptr.45", %"struct.langcc::rc_ptr.417", %"struct.langcc::rc_ptr.200", %"struct.langcc::rc_ptr.32" }
%"struct.lang::cc::Node::Decl::_T.base" = type <{ %"struct.lang::cc::Node::_T", i32 }>
%"struct.langcc::rc_ptr.420" = type { ptr, ptr }
%"struct.langcc::Option::_T.416" = type { i32, [16 x i8] }
%"struct.langcc::rc_ptr.45" = type { ptr, ptr }
%"struct.langcc::rc_ptr.417" = type { ptr, ptr }
%"struct.langcc::rc_ptr.200" = type { ptr, ptr }
%"struct.langcc::rc_ptr.32" = type { ptr, ptr }

declare i32 @__gxx_personality_v0(...)

; 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) #0

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(20) ptr @_ZN6langcc6Option2_TINS_6rc_ptrIN4lang2cc4Node4Expr2_TEEEEaSERKS9_(ptr noundef nonnull align 4 dereferenceable(20), ptr noundef nonnull align 4 dereferenceable(20)) #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4lang2cc4Node4Decl3Fun8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS4_3VecINSA_INS3_4tmpl4item2_TEEEEEEENSA_INSB_INSA_INS1_3Mod2_TEEEEEEENS4_6Option2_TINSA_INS1_4Expr2_TEEEEESR_NSA_INSB_INSA_INS1_5Param2_TEEEEEEESM_NSA_INS1_10FunDeclDef2_TEEE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.154") align 8 %0, ptr noundef %1, i64 noundef %2, i64 %3, i1 noundef zeroext %4, i64 noundef %5, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8 %6, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8 %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14) #3 personality ptr @__gxx_personality_v0 {
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.langcc::TokenBounds", align 4
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i8, align 1
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i1, align 1
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  store ptr %0, ptr %16, align 8
  store i64 %3, ptr %17, align 4
  store ptr %1, ptr %18, align 8, !tbaa !5
  store i64 %2, ptr %19, align 8, !tbaa !9
  %32 = zext i1 %4 to i8
  store i8 %32, ptr %20, align 1, !tbaa !11
  store i64 %5, ptr %21, align 8, !tbaa !9
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  store ptr %12, ptr %26, align 8, !tbaa !5
  store ptr %13, ptr %27, align 8, !tbaa !5
  store ptr %14, ptr %28, align 8, !tbaa !5
  store i1 false, ptr %29, align 1
  %33 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN6langcc11make_rc_extIN4lang2cc4Node4Decl3Fun2_TEJEEENS_6rc_ptrIT_EEPNS_5ArenaEDpT0_(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.154") align 8 %0, ptr noundef %33)
  %34 = load i64, ptr %19, align 8, !tbaa !9
  %35 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %36 unwind label %93

36:                                               ; preds = %15
  %37 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %35, i32 0, i32 4
  store i64 %34, ptr %37, align 8, !tbaa !13
  %38 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %39 unwind label %93

39:                                               ; preds = %36
  %40 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %38, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !24
  %41 = load i8, ptr %20, align 1, !tbaa !11, !range !26, !noundef !27
  %42 = trunc i8 %41 to i1
  %43 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %44 unwind label %93

44:                                               ; preds = %39
  %45 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %43, i32 0, i32 6
  %46 = zext i1 %42 to i8
  store i8 %46, ptr %45, align 8, !tbaa !28
  %47 = load i64, ptr %21, align 8, !tbaa !9
  %48 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %49 unwind label %93

49:                                               ; preds = %44
  %50 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %48, i32 0, i32 7
  store i64 %47, ptr %50, align 8, !tbaa !29
  %51 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %52 unwind label %93

52:                                               ; preds = %49
  %53 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %51, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 8 %6, i64 16, i1 false), !tbaa.struct !30
  %54 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %55 unwind label %93

55:                                               ; preds = %52
  %56 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %54, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %56, ptr align 8 %7, i64 16, i1 false), !tbaa.struct !30
  %57 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %58 unwind label %93

58:                                               ; preds = %55
  %59 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %57, i32 0, i32 1
  %60 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Decl3Fun4tmpl4item2_TEEEEEEaSERKSC_(ptr noundef nonnull align 8 dereferenceable(16) %59, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %61 unwind label %93

61:                                               ; preds = %58
  %62 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %63 unwind label %93

63:                                               ; preds = %61
  %64 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %62, i32 0, i32 2
  %65 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node3Mod2_TEEEEEEaSERKS9_(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %66 unwind label %93

66:                                               ; preds = %63
  %67 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %68 unwind label %93

68:                                               ; preds = %66
  %69 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %67, i32 0, i32 3
  %70 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN6langcc6Option2_TINS_6rc_ptrIN4lang2cc4Node4Expr2_TEEEEaSERKS9_(ptr noundef nonnull align 4 dereferenceable(20) %69, ptr noundef nonnull align 4 dereferenceable(20) %10)
          to label %71 unwind label %93

71:                                               ; preds = %68
  %72 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %73 unwind label %93

73:                                               ; preds = %71
  %74 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %72, i32 0, i32 4
  %75 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %74, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %76 unwind label %93

76:                                               ; preds = %73
  %77 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %78 unwind label %93

78:                                               ; preds = %76
  %79 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %77, i32 0, i32 5
  %80 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node5Param2_TEEEEEEaSERKS9_(ptr noundef nonnull align 8 dereferenceable(16) %79, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %81 unwind label %93

81:                                               ; preds = %78
  %82 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %83 unwind label %93

83:                                               ; preds = %81
  %84 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %82, i32 0, i32 6
  %85 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node3Mod2_TEEEEEEaSERKS9_(ptr noundef nonnull align 8 dereferenceable(16) %84, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %86 unwind label %93

86:                                               ; preds = %83
  %87 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %88 unwind label %93

88:                                               ; preds = %86
  %89 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %87, i32 0, i32 7
  %90 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10FunDeclDef2_TEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %89, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %91 unwind label %93

91:                                               ; preds = %88
  store i1 true, ptr %29, align 1
  %92 = load i1, ptr %29, align 1
  br i1 %92, label %98, label %97

93:                                               ; preds = %88, %86, %83, %81, %78, %76, %73, %71, %68, %66, %63, %61, %58, %55, %52, %49, %44, %39, %36, %15
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %30, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %31, align 4
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #4
  br label %99

97:                                               ; preds = %91
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #4
  br label %98

98:                                               ; preds = %97, %91
  ret void

99:                                               ; preds = %93
  %100 = load ptr, ptr %30, align 8
  %101 = load i32, ptr %31, align 4
  %102 = insertvalue { ptr, i32 } poison, ptr %100, 0
  %103 = insertvalue { ptr, i32 } %102, i32 %101, 1
  resume { ptr, i32 } %103
}

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { alwaysinline 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 = { 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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 72}
!14 = !{!"_ZTSN4lang2cc4Node2_TE", !15, i64 8, !18, i64 48, !19, i64 64, !10, i64 72, !20, i64 80, !12, i64 88, !10, i64 96, !22, i64 104, !23, i64 120}
!15 = !{!"_ZTSN6langcc8hash_objE", !16, i64 0}
!16 = !{!"_ZTSN6langcc6Option2_TINS_7HashValEEE", !17, i64 0, !7, i64 4}
!17 = !{!"_ZTSN6langcc6Option2_WE", !7, i64 0}
!18 = !{!"_ZTSN6langcc24enable_rc_from_this_polyE", !6, i64 0, !6, i64 8}
!19 = !{!"_ZTSN4lang2cc4Node2_WE", !7, i64 0}
!20 = !{!"_ZTSN6langcc11TokenBoundsE", !21, i64 0, !21, i64 4}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTSN6langcc14ParserAttrMaskE", !7, i64 0}
!23 = !{!"_ZTSN6langcc15ParserLookaheadE", !7, i64 0}
!24 = !{i64 0, i64 4, !25, i64 4, i64 4, !25}
!25 = !{!21, !21, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!14, !12, i64 88}
!29 = !{!14, !10, i64 96}
!30 = !{i64 0, i64 16, !31}
!31 = !{!7, !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.langcc::rc_ptr.154" = type { ptr, ptr }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }

declare i32 @__gxx_personality_v0(...)

; 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) #0

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(20) ptr @_ZN6langcc6Option2_TINS_6rc_ptrIN4lang2cc4Node4Expr2_TEEEEaSERKS9_(ptr noundef nonnull align 4 dereferenceable(20), ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4lang2cc4Node4Decl3Fun8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS4_3VecINSA_INS3_4tmpl4item2_TEEEEEEENSA_INSB_INSA_INS1_3Mod2_TEEEEEEENS4_6Option2_TINSA_INS1_4Expr2_TEEEEESR_NSA_INSB_INSA_INS1_5Param2_TEEEEEEESM_NSA_INS1_10FunDeclDef2_TEEE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.154") align 8 %0, ptr noundef %1, i64 noundef %2, i64 %3, i1 noundef zeroext %4, i64 noundef %5, ptr nocapture noundef readonly byval(%"struct.langcc::ParserAttrMask") align 8 %6, ptr nocapture noundef readonly byval(%"struct.langcc::ParserLookahead") align 8 %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %16 = zext i1 %4 to i8
  tail call void @_ZN6langcc11make_rc_extIN4lang2cc4Node4Decl3Fun2_TEJEEENS_6rc_ptrIT_EEPNS_5ArenaEDpT0_(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.154") align 8 %0, ptr noundef %1)
  %17 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %18 = getelementptr inbounds i8, ptr %17, i64 72
  store i64 %2, ptr %18, align 8, !tbaa !5
  %19 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %20 = getelementptr inbounds i8, ptr %19, i64 80
  store i64 %3, ptr %20, align 8
  %21 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %22 = getelementptr inbounds i8, ptr %21, i64 88
  store i8 %16, ptr %22, align 8, !tbaa !21
  %23 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %24 = getelementptr inbounds i8, ptr %23, i64 96
  store i64 %5, ptr %24, align 8, !tbaa !22
  %25 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %26 = getelementptr inbounds i8, ptr %25, i64 104
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %6, i64 16, i1 false), !tbaa.struct !23
  %27 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %28 = getelementptr inbounds i8, ptr %27, i64 120
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %7, i64 16, i1 false), !tbaa.struct !23
  %29 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %30 = getelementptr inbounds i8, ptr %29, i64 144
  %31 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Decl3Fun4tmpl4item2_TEEEEEEaSERKSC_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %32 unwind label %56

32:                                               ; preds = %15
  %33 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %34 = getelementptr inbounds i8, ptr %33, i64 160
  %35 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node3Mod2_TEEEEEEaSERKS9_(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %36 unwind label %56

36:                                               ; preds = %32
  %37 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %38 = getelementptr inbounds i8, ptr %37, i64 176
  %39 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN6langcc6Option2_TINS_6rc_ptrIN4lang2cc4Node4Expr2_TEEEEaSERKS9_(ptr noundef nonnull align 4 dereferenceable(20) %38, ptr noundef nonnull align 4 dereferenceable(20) %10)
          to label %40 unwind label %56

40:                                               ; preds = %36
  %41 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %42 = getelementptr inbounds i8, ptr %41, i64 200
  %43 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %44 unwind label %56

44:                                               ; preds = %40
  %45 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %46 = getelementptr inbounds i8, ptr %45, i64 216
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node5Param2_TEEEEEEaSERKS9_(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %48 unwind label %56

48:                                               ; preds = %44
  %49 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %50 = getelementptr inbounds i8, ptr %49, i64 232
  %51 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node3Mod2_TEEEEEEaSERKS9_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %52 unwind label %56

52:                                               ; preds = %48
  %53 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %54 = getelementptr inbounds i8, ptr %53, i64 248
  %55 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10FunDeclDef2_TEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %58 unwind label %56

56:                                               ; preds = %52, %48, %44, %40, %36, %32, %15
  %57 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #4
  resume { ptr, i32 } %57

58:                                               ; preds = %52
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { alwaysinline 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 = { 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 = { 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 = !{!6, !15, i64 96}
!23 = !{i64 0, i64 16, !24}
!24 = !{!10, !10, i64 0}


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