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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

80:                                               ; preds = %77
  store i1 true, ptr %7, align 1
  %81 = load i1, ptr %7, align 1
  br i1 %81, label %87, label %86

82:                                               ; preds = %77, %74, %71, %68, %65, %62, %59, %56, %53, %50, %47, %44, %41, %37, %33, %29, %23, %17, %14, %3
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %8, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %9, align 4
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #4
  br label %88

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

87:                                               ; preds = %86, %80
  ret void

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

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, !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}


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

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

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

38:                                               ; preds = %33
  %39 = getelementptr inbounds i8, ptr %1, i64 200
  %40 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %41 = getelementptr inbounds i8, ptr %40, i64 200
  %42 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEaSERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(16) %39)
          to label %43 unwind label %58

43:                                               ; preds = %38
  %44 = getelementptr inbounds i8, ptr %1, i64 216
  %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) %44)
          to label %48 unwind label %58

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

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

58:                                               ; preds = %53, %48, %43, %38, %33, %28, %3
  %59 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl3Fun2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #4
  resume { ptr, i32 } %59

60:                                               ; preds = %53
  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 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!6, !15, i64 96}
!25 = !{i64 0, i64 16, !26}
!26 = !{!10, !10, i64 0}


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