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

; 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.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.langcc::TokenBounds" = type { i32, i32 }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"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: mustprogress uwtable
declare dso_local void @_ZN6langcc7make_rcIN4lang2cc4Node4Decl3Fun2_TEJEEENS_6rc_ptrIT_EEDpT0_(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.154") align 8) #3

; 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 @_ZN4lang2cc4Node4Decl3Fun2_T11with_is_topEb(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.154") align 8 %0, ptr noundef nonnull align 8 dereferenceable(264) %1, i1 noundef zeroext %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  %10 = zext i1 %2 to i8
  store i8 %10, ptr %6, align 1, !tbaa !9
  %11 = load ptr, ptr %5, align 8
  store i1 false, ptr %7, align 1
  call void @_ZN6langcc7make_rcIN4lang2cc4Node4Decl3Fun2_TEJEEENS_6rc_ptrIT_EEDpT0_(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.154") align 8 %0)
  %12 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %11, i32 0, i32 4
  %13 = load i64, ptr %12, align 8, !tbaa !11
  %14 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %15 unwind label %83

15:                                               ; preds = %3
  %16 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %14, i32 0, i32 4
  store i64 %13, ptr %16, align 8, !tbaa !11
  %17 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %11, i32 0, i32 5
  %18 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %19 unwind label %83

19:                                               ; preds = %15
  %20 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %18, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !23
  %21 = load i8, ptr %6, align 1, !tbaa !9, !range !25, !noundef !26
  %22 = trunc i8 %21 to i1
  %23 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %24 unwind label %83

24:                                               ; preds = %19
  %25 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %23, i32 0, i32 6
  %26 = zext i1 %22 to i8
  store i8 %26, ptr %25, align 8, !tbaa !27
  %27 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %11, i32 0, i32 7
  %28 = load i64, ptr %27, align 8, !tbaa !28
  %29 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %30 unwind label %83

30:                                               ; preds = %24
  %31 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %29, i32 0, i32 7
  store i64 %28, ptr %31, align 8, !tbaa !28
  %32 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %11, i32 0, i32 8
  %33 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %34 unwind label %83

34:                                               ; preds = %30
  %35 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %33, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %32, i64 16, i1 false), !tbaa.struct !29
  %36 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %11, i32 0, i32 9
  %37 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %38 unwind label %83

38:                                               ; preds = %34
  %39 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %37, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 8 %36, i64 16, i1 false), !tbaa.struct !29
  %40 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %11, i32 0, i32 1
  %41 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %42 unwind label %83

42:                                               ; preds = %38
  %43 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %41, i32 0, i32 1
  %44 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Decl3Fun4tmpl4item2_TEEEEEEaSERKSC_(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 8 dereferenceable(16) %40)
          to label %45 unwind label %83

45:                                               ; preds = %42
  %46 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %11, i32 0, i32 2
  %47 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %48 unwind label %83

48:                                               ; preds = %45
  %49 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %47, i32 0, i32 2
  %50 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node3Mod2_TEEEEEEaSERKS9_(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(16) %46)
          to label %51 unwind label %83

51:                                               ; preds = %48
  %52 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %11, i32 0, i32 3
  %53 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %54 unwind label %83

54:                                               ; preds = %51
  %55 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %53, i32 0, i32 3
  %56 = invoke noundef nonnull align 4 dereferenceable(20) ptr @_ZN6langcc6Option2_TINS_6rc_ptrIN4lang2cc4Node4Expr2_TEEEEaSERKS9_(ptr noundef nonnull align 4 dereferenceable(20) %55, ptr noundef nonnull align 4 dereferenceable(20) %52)
          to label %57 unwind label %83

57:                                               ; preds = %54
  %58 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %11, i32 0, i32 4
  %59 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %60 unwind label %83

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

63:                                               ; preds = %60
  %64 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %11, i32 0, i32 5
  %65 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %66 unwind label %83

66:                                               ; preds = %63
  %67 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %65, i32 0, i32 5
  %68 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node5Param2_TEEEEEEaSERKS9_(ptr noundef nonnull align 8 dereferenceable(16) %67, ptr noundef nonnull align 8 dereferenceable(16) %64)
          to label %69 unwind label %83

69:                                               ; preds = %66
  %70 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %11, i32 0, i32 6
  %71 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %72 unwind label %83

72:                                               ; preds = %69
  %73 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %71, i32 0, i32 6
  %74 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node3Mod2_TEEEEEEaSERKS9_(ptr noundef nonnull align 8 dereferenceable(16) %73, ptr noundef nonnull align 8 dereferenceable(16) %70)
          to label %75 unwind label %83

75:                                               ; preds = %72
  %76 = getelementptr inbounds %"struct.lang::cc::Node::Decl::Fun::_T", ptr %11, i32 0, i32 7
  %77 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %78 unwind label %83

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

81:                                               ; preds = %78
  store i1 true, ptr %7, align 1
  %82 = load i1, ptr %7, align 1
  br i1 %82, label %88, label %87

83:                                               ; preds = %78, %75, %72, %69, %66, %63, %60, %57, %54, %51, %48, %45, %42, %38, %34, %30, %24, %19, %15, %3
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %8, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %9, align 4
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #4
  br label %89

87:                                               ; preds = %81
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #4
  br label %88

88:                                               ; preds = %87, %81
  ret void

89:                                               ; preds = %83
  %90 = load ptr, ptr %8, align 8
  %91 = load i32, ptr %9, align 4
  %92 = insertvalue { ptr, i32 } poison, ptr %90, 0
  %93 = insertvalue { ptr, i32 } %92, i32 %91, 1
  resume { ptr, i32 } %93
}

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

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: mustprogress uwtable
declare dso_local void @_ZN6langcc7make_rcIN4lang2cc4Node4Decl3Fun2_TEJEEENS_6rc_ptrIT_EEDpT0_(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.154") align 8) local_unnamed_addr #3

; 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 @_ZN4lang2cc4Node4Decl3Fun2_T11with_is_topEb(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.154") align 8 %0, ptr noundef nonnull align 8 dereferenceable(264) %1, i1 noundef zeroext %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = zext i1 %2 to i8
  tail call void @_ZN6langcc7make_rcIN4lang2cc4Node4Decl3Fun2_TEJEEENS_6rc_ptrIT_EEDpT0_(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.154") align 8 %0)
  %5 = getelementptr inbounds i8, ptr %1, i64 72
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %8 = getelementptr inbounds i8, ptr %7, i64 72
  store i64 %6, ptr %8, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 80
  %10 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %11 = getelementptr inbounds i8, ptr %10, i64 80
  %12 = load i64, ptr %9, align 8
  store i64 %12, ptr %11, align 8
  %13 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %14 = getelementptr inbounds i8, ptr %13, i64 88
  store i8 %4, ptr %14, align 8, !tbaa !21
  %15 = getelementptr inbounds i8, ptr %1, i64 96
  %16 = load i64, ptr %15, align 8, !tbaa !22
  %17 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %18 = getelementptr inbounds i8, ptr %17, i64 96
  store i64 %16, ptr %18, align 8, !tbaa !22
  %19 = getelementptr inbounds i8, ptr %1, i64 104
  %20 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %21 = getelementptr inbounds i8, ptr %20, i64 104
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %19, i64 16, i1 false), !tbaa.struct !23
  %22 = getelementptr inbounds i8, ptr %1, i64 120
  %23 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %24 = getelementptr inbounds i8, ptr %23, i64 120
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %22, i64 16, i1 false), !tbaa.struct !23
  %25 = getelementptr inbounds i8, ptr %1, i64 144
  %26 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %27 = getelementptr inbounds i8, ptr %26, i64 144
  %28 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Decl3Fun4tmpl4item2_TEEEEEEaSERKSC_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %29 unwind label %59

29:                                               ; preds = %3
  %30 = getelementptr inbounds i8, ptr %1, i64 160
  %31 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %32 = getelementptr inbounds i8, ptr %31, i64 160
  %33 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node3Mod2_TEEEEEEaSERKS9_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %34 unwind label %59

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

39:                                               ; preds = %34
  %40 = getelementptr inbounds i8, ptr %1, i64 200
  %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) %40)
          to label %44 unwind label %59

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

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

54:                                               ; preds = %49
  %55 = getelementptr inbounds i8, ptr %1, i64 248
  %56 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %57 = getelementptr inbounds i8, ptr %56, i64 248
  %58 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10FunDeclDef2_TEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 8 dereferenceable(16) %55)
          to label %61 unwind label %59

59:                                               ; preds = %54, %49, %44, %39, %34, %29, %3
  %60 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #4
  resume { ptr, i32 } %60

61:                                               ; preds = %54
  ret void
}

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,SROAPass,SimplifyCFGPass,TailCallElimPass