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

; 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.45" = type { ptr, ptr }
%"struct.langcc::rc_ptr.310" = type { ptr, ptr }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"struct.langcc::SymItem" = type { i64, i64, %"struct.langcc::ParserAttrMask", i64, i64, i64, %"struct.langcc::Result_T", %"struct.langcc::ParserLookahead" }
%"struct.langcc::Result_T" = type { ptr, %"struct.langcc::TokenBounds" }
%"struct.langcc::TokenBounds" = type { i32, i32 }
%"struct.langcc::ParserProcState" = type { %"struct.langcc::rc_ptr.16", ptr, ptr, i64, ptr, i64, ptr, i64, ptr, i64, %"struct.langcc::SymItem", ptr, ptr }
%"struct.langcc::rc_ptr.16" = type { ptr, ptr }
%"struct.langcc::ParserVertexStackItem" = type { i64, i64 }

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: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 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 #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang2cc4Node4Expr2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.45") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #4 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 #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef, i64 noundef) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN4lang2cc6parser18_parse_proc_47_0_0EPN6langcc15ParserProcStateE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::SymItem") align 8 %0, ptr noundef %1) #7 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.langcc::SymItem", align 8
  %10 = alloca %"struct.langcc::SymItem", align 8
  %11 = alloca %"struct.langcc::Result_T", align 8
  %12 = alloca %"struct.langcc::Result_T", align 8
  %13 = alloca %"struct.langcc::rc_ptr.45", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.langcc::rc_ptr.310", align 8
  %17 = alloca %"struct.langcc::TokenBounds", align 4
  %18 = alloca %"struct.langcc::ParserAttrMask", align 8
  %19 = alloca %"struct.langcc::ParserLookahead", align 8
  %20 = alloca %"struct.langcc::rc_ptr.45", align 8
  %21 = alloca %"struct.langcc::Result_T", align 8
  %22 = alloca %"struct.langcc::TokenBounds", align 4
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %33, i32 0, i32 5
  %35 = load i64, ptr %34, align 8, !tbaa !9
  store i64 %35, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %36, i32 0, i32 7
  %38 = load i64, ptr %37, align 8, !tbaa !20
  store i64 %38, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %39, i32 0, i32 9
  %41 = load i64, ptr %40, align 8, !tbaa !21
  store i64 %41, ptr %6, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %42, i32 0, i32 3
  %44 = load i64, ptr %43, align 8, !tbaa !22
  store i64 %44, ptr %7, align 8, !tbaa !19
  %45 = load i64, ptr %7, align 8, !tbaa !19
  %46 = sub nsw i64 %45, 2
  store i64 %46, ptr %7, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %47, i32 0, i32 2
  %49 = load ptr, ptr %48, align 8, !tbaa !23
  %50 = load i64, ptr %7, align 8, !tbaa !19
  %51 = sub nsw i64 %50, 1
  %52 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %49, i64 %51
  %53 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %52, i32 0, i32 1
  %54 = load i64, ptr %53, align 8, !tbaa !24
  store i64 %54, ptr %8, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 88, ptr %9) #8
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %55, i32 0, i32 4
  %57 = load ptr, ptr %56, align 8, !tbaa !26
  %58 = load i64, ptr %4, align 8, !tbaa !19
  %59 = sub nsw i64 %58, 1
  %60 = getelementptr inbounds %"struct.langcc::SymItem", ptr %57, i64 %59
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %60, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %10) #8
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %61, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !26
  %64 = load i64, ptr %4, align 8, !tbaa !19
  %65 = sub nsw i64 %64, 2
  %66 = getelementptr inbounds %"struct.langcc::SymItem", ptr %63, i64 %65
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %66, i64 88, i1 false), !tbaa.struct !27
  %67 = load i64, ptr %4, align 8, !tbaa !19
  %68 = sub nsw i64 %67, 2
  store i64 %68, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %69, i32 0, i32 6
  %71 = load ptr, ptr %70, align 8, !tbaa !30
  %72 = load i64, ptr %5, align 8, !tbaa !19
  %73 = sub nsw i64 %72, 1
  %74 = getelementptr inbounds %"struct.langcc::Result_T", ptr %71, i64 %73
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %74, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %75, i32 0, i32 6
  %77 = load ptr, ptr %76, align 8, !tbaa !30
  %78 = load i64, ptr %5, align 8, !tbaa !19
  %79 = sub nsw i64 %78, 2
  %80 = getelementptr inbounds %"struct.langcc::Result_T", ptr %77, i64 %79
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %80, i64 16, i1 false), !tbaa.struct !31
  %81 = load i64, ptr %5, align 8, !tbaa !19
  %82 = sub nsw i64 %81, 2
  store i64 %82, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  %83 = getelementptr inbounds %"struct.langcc::Result_T", ptr %12, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !32
  %85 = getelementptr inbounds i8, ptr %84, i64 48
  call void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang2cc4Node4Expr2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.45") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %85)
  invoke void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %86 unwind label %226

86:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %87, i32 0, i32 12
  %89 = load ptr, ptr %88, align 8, !tbaa !33
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = invoke noundef ptr @_ZN6langcc15ParserProcState3genEv(ptr noundef nonnull align 8 dereferenceable(192) %90)
          to label %92 unwind label %230

92:                                               ; preds = %86
  %93 = invoke noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8) %91)
          to label %94 unwind label %230

94:                                               ; preds = %92
  %95 = load i64, ptr %8, align 8, !tbaa !19
  %96 = trunc i64 %95 to i32
  %97 = getelementptr inbounds %"struct.langcc::Result_T", ptr %11, i32 0, i32 1
  %98 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 4, !tbaa !34
  invoke void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef %96, i32 noundef %99)
          to label %100 unwind label %230

100:                                              ; preds = %94
  invoke void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16) %18)
          to label %101 unwind label %230

101:                                              ; preds = %100
  invoke void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 dereferenceable(16) %19)
          to label %102 unwind label %230

102:                                              ; preds = %101
  invoke void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %103 unwind label %230

103:                                              ; preds = %102
  %104 = load i64, ptr %17, align 4
  invoke void @_ZN4lang2cc4Node4Expr4Ref_8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS2_2_TEEE(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.310") align 8 %16, ptr noundef %89, i64 noundef %93, i64 %104, i1 noundef zeroext false, i64 noundef -1, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8 %18, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8 %19, ptr noundef %20)
          to label %105 unwind label %234

105:                                              ; preds = %103
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  invoke void @_ZNK6langcc6rc_ptrIN4lang2cc4Node4Expr4Ref_2_TEE6increfEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %106 unwind label %238

106:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %107 = invoke noundef ptr @_ZNK6langcc6rc_ptrIN4lang2cc4Node4Expr4Ref_2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %108 unwind label %242

108:                                              ; preds = %106
  %109 = load i64, ptr %8, align 8, !tbaa !19
  %110 = trunc i64 %109 to i32
  %111 = getelementptr inbounds %"struct.langcc::Result_T", ptr %11, i32 0, i32 1
  %112 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 4, !tbaa !34
  invoke void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %22, i32 noundef %110, i32 noundef %113)
          to label %114 unwind label %242

114:                                              ; preds = %108
  %115 = load i64, ptr %22, align 4
  invoke void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef %107, i64 %115)
          to label %116 unwind label %242

116:                                              ; preds = %114
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %117, i32 0, i32 6
  %119 = load ptr, ptr %118, align 8, !tbaa !30
  %120 = load i64, ptr %5, align 8, !tbaa !19
  %121 = getelementptr inbounds %"struct.langcc::Result_T", ptr %119, i64 %120
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %121, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !31
  %122 = load i64, ptr %5, align 8, !tbaa !19
  %123 = add nsw i64 %122, 1
  store i64 %123, ptr %5, align 8, !tbaa !19
  %124 = load i64, ptr %8, align 8, !tbaa !19
  invoke void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 167, i64 noundef %124)
          to label %125 unwind label %242

125:                                              ; preds = %116
  %126 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %127 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %126, i32 0, i32 0
  %128 = getelementptr inbounds [16 x i8], ptr %127, i64 0, i64 0
  store i8 1, ptr %128, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %129 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %130 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %129, i32 0, i32 0
  %131 = getelementptr inbounds [16 x i8], ptr %130, i64 0, i64 0
  %132 = load i8, ptr %131, align 8, !tbaa !28
  %133 = zext i8 %132 to i64
  store i64 %133, ptr %23, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  store i64 0, ptr %24, align 8, !tbaa !19
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %135 unwind label %246

135:                                              ; preds = %125
  %136 = load i64, ptr %134, align 8, !tbaa !19
  %137 = trunc i64 %136 to i8
  %138 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %139 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %138, i32 0, i32 0
  %140 = getelementptr inbounds [16 x i8], ptr %139, i64 0, i64 0
  store i8 %137, ptr %140, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  %141 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %142 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %141, i32 0, i32 0
  %143 = getelementptr inbounds [16 x i8], ptr %142, i64 0, i64 1
  store i8 1, ptr %143, align 1, !tbaa !28
  %144 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %145 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds [16 x i8], ptr %145, i64 0, i64 2
  store i8 1, ptr %146, align 2, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %147 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %148 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %147, i32 0, i32 0
  %149 = getelementptr inbounds [16 x i8], ptr %148, i64 0, i64 2
  %150 = load i8, ptr %149, align 2, !tbaa !28
  %151 = zext i8 %150 to i64
  store i64 %151, ptr %25, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  store i64 0, ptr %26, align 8, !tbaa !19
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %153 unwind label %250

153:                                              ; preds = %135
  %154 = load i64, ptr %152, align 8, !tbaa !19
  %155 = trunc i64 %154 to i8
  %156 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %157 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %156, i32 0, i32 0
  %158 = getelementptr inbounds [16 x i8], ptr %157, i64 0, i64 2
  store i8 %155, ptr %158, align 2, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  %159 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %160 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %159, i32 0, i32 0
  %161 = getelementptr inbounds [16 x i8], ptr %160, i64 0, i64 3
  store i8 1, ptr %161, align 1, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %162 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %163 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %162, i32 0, i32 0
  %164 = getelementptr inbounds [16 x i8], ptr %163, i64 0, i64 3
  %165 = load i8, ptr %164, align 1, !tbaa !28
  %166 = zext i8 %165 to i64
  store i64 %166, ptr %27, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %167 = getelementptr inbounds %"struct.langcc::SymItem", ptr %10, i32 0, i32 2
  %168 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %167, i32 0, i32 0
  %169 = getelementptr inbounds [16 x i8], ptr %168, i64 0, i64 3
  %170 = load i8, ptr %169, align 1, !tbaa !28
  %171 = zext i8 %170 to i64
  store i64 %171, ptr %28, align 8, !tbaa !19
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %173 unwind label %254

173:                                              ; preds = %153
  %174 = load i64, ptr %172, align 8, !tbaa !19
  %175 = trunc i64 %174 to i8
  %176 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %177 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %176, i32 0, i32 0
  %178 = getelementptr inbounds [16 x i8], ptr %177, i64 0, i64 3
  store i8 %175, ptr %178, align 1, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  %179 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %180 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %179, i32 0, i32 0
  %181 = getelementptr inbounds [16 x i8], ptr %180, i64 0, i64 4
  store i8 18, ptr %181, align 4, !tbaa !28
  %182 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %183 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %182, i32 0, i32 0
  %184 = getelementptr inbounds [16 x i8], ptr %183, i64 0, i64 5
  store i8 18, ptr %184, align 1, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %185 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %186 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %185, i32 0, i32 0
  %187 = getelementptr inbounds [16 x i8], ptr %186, i64 0, i64 5
  %188 = load i8, ptr %187, align 1, !tbaa !28
  %189 = zext i8 %188 to i64
  store i64 %189, ptr %29, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  store i64 11, ptr %30, align 8, !tbaa !19
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %191 unwind label %258

191:                                              ; preds = %173
  %192 = load i64, ptr %190, align 8, !tbaa !19
  %193 = trunc i64 %192 to i8
  %194 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %195 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %194, i32 0, i32 0
  %196 = getelementptr inbounds [16 x i8], ptr %195, i64 0, i64 5
  store i8 %193, ptr %196, align 1, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %197 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %198 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %197, i32 0, i32 0
  %199 = getelementptr inbounds [16 x i8], ptr %198, i64 0, i64 5
  %200 = load i8, ptr %199, align 1, !tbaa !28
  %201 = zext i8 %200 to i64
  store i64 %201, ptr %31, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %202 = getelementptr inbounds %"struct.langcc::SymItem", ptr %10, i32 0, i32 2
  %203 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %202, i32 0, i32 0
  %204 = getelementptr inbounds [16 x i8], ptr %203, i64 0, i64 5
  %205 = load i8, ptr %204, align 1, !tbaa !28
  %206 = zext i8 %205 to i64
  store i64 %206, ptr %32, align 8, !tbaa !19
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %208 unwind label %262

208:                                              ; preds = %191
  %209 = load i64, ptr %207, align 8, !tbaa !19
  %210 = trunc i64 %209 to i8
  %211 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %212 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %211, i32 0, i32 0
  %213 = getelementptr inbounds [16 x i8], ptr %212, i64 0, i64 5
  store i8 %210, ptr %213, align 1, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  %214 = load i64, ptr %4, align 8, !tbaa !19
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %215, i32 0, i32 5
  store i64 %214, ptr %216, align 8, !tbaa !9
  %217 = load i64, ptr %5, align 8, !tbaa !19
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %218, i32 0, i32 7
  store i64 %217, ptr %219, align 8, !tbaa !20
  %220 = load i64, ptr %6, align 8, !tbaa !19
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %221, i32 0, i32 9
  store i64 %220, ptr %222, align 8, !tbaa !21
  %223 = load i64, ptr %7, align 8, !tbaa !19
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %224, i32 0, i32 3
  store i64 %223, ptr %225, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr4Ref_2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  ret void

226:                                              ; preds = %2
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %14, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %15, align 4
  br label %269

230:                                              ; preds = %102, %101, %100, %94, %92, %86
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %14, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %15, align 4
  br label %268

234:                                              ; preds = %103
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %14, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %15, align 4
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  br label %268

238:                                              ; preds = %105
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %14, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %15, align 4
  br label %267

242:                                              ; preds = %116, %114, %108, %106
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %14, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %15, align 4
  br label %266

246:                                              ; preds = %125
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %14, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %266

250:                                              ; preds = %135
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %14, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %266

254:                                              ; preds = %153
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %14, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %266

258:                                              ; preds = %173
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %14, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %266

262:                                              ; preds = %191
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %14, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %266

266:                                              ; preds = %262, %258, %254, %250, %246, %242
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  br label %267

267:                                              ; preds = %266, %238
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr4Ref_2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #8
  br label %268

268:                                              ; preds = %267, %234, %230
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  br label %269

269:                                              ; preds = %268, %226
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %270

270:                                              ; preds = %269
  %271 = load ptr, ptr %14, align 8
  %272 = load i32, ptr %15, align 4
  %273 = insertvalue { ptr, i32 } poison, ptr %271, 0
  %274 = insertvalue { ptr, i32 } %273, i32 %272, 1
  resume { ptr, i32 } %274
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 #4 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress noinline uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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, !12, i64 48}
!10 = !{!"_ZTSN6langcc15ParserProcStateE", !11, i64 0, !6, i64 16, !6, i64 24, !12, i64 32, !6, i64 40, !12, i64 48, !6, i64 56, !12, i64 64, !6, i64 72, !12, i64 80, !13, i64 88, !6, i64 176, !6, i64 184}
!11 = !{!"_ZTSN6langcc6rc_ptrINS_9LexOutputEEE", !6, i64 0, !6, i64 8}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSN6langcc7SymItemE", !12, i64 0, !12, i64 8, !14, i64 16, !12, i64 32, !12, i64 40, !12, i64 48, !15, i64 56, !18, i64 72}
!14 = !{!"_ZTSN6langcc14ParserAttrMaskE", !7, i64 0}
!15 = !{!"_ZTSN6langcc8Result_TE", !6, i64 0, !16, i64 8}
!16 = !{!"_ZTSN6langcc11TokenBoundsE", !17, i64 0, !17, i64 4}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN6langcc15ParserLookaheadE", !7, i64 0}
!19 = !{!12, !12, i64 0}
!20 = !{!10, !12, i64 64}
!21 = !{!10, !12, i64 80}
!22 = !{!10, !12, i64 32}
!23 = !{!10, !6, i64 24}
!24 = !{!25, !12, i64 8}
!25 = !{!"_ZTSN6langcc21ParserVertexStackItemE", !12, i64 0, !12, i64 8}
!26 = !{!10, !6, i64 40}
!27 = !{i64 0, i64 8, !19, i64 8, i64 8, !19, i64 16, i64 16, !28, i64 32, i64 8, !19, i64 40, i64 8, !19, i64 48, i64 8, !19, i64 56, i64 8, !5, i64 64, i64 4, !29, i64 68, i64 4, !29, i64 72, i64 16, !28}
!28 = !{!7, !7, i64 0}
!29 = !{!17, !17, i64 0}
!30 = !{!10, !6, i64 56}
!31 = !{i64 0, i64 8, !5, i64 8, i64 4, !29, i64 12, i64 4, !29}
!32 = !{!15, !6, i64 0}
!33 = !{!10, !6, i64 184}
!34 = !{!15, !17, i64 12}


; 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.45" = type { ptr, ptr }
%"struct.langcc::rc_ptr.310" = type { ptr, ptr }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"struct.langcc::SymItem" = type { i64, i64, %"struct.langcc::ParserAttrMask", i64, i64, i64, %"struct.langcc::Result_T", %"struct.langcc::ParserLookahead" }
%"struct.langcc::Result_T" = type { ptr, %"struct.langcc::TokenBounds" }
%"struct.langcc::TokenBounds" = type { i32, i32 }
%"struct.langcc::ParserVertexStackItem" = 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 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 #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang2cc4Node4Expr2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.45") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 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 #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef, i64 noundef) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN4lang2cc6parser18_parse_proc_47_0_0EPN6langcc15ParserProcStateE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::SymItem") align 8 %0, ptr noundef %1) local_unnamed_addr #7 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.langcc::rc_ptr.45", align 8
  %4 = alloca %"struct.langcc::rc_ptr.310", align 8
  %5 = alloca %"struct.langcc::TokenBounds", align 8
  %6 = alloca %"struct.langcc::ParserAttrMask", align 8
  %7 = alloca %"struct.langcc::ParserLookahead", align 8
  %8 = alloca %"struct.langcc::rc_ptr.45", align 8
  %9 = alloca %"struct.langcc::Result_T", align 8
  %10 = alloca %"struct.langcc::TokenBounds", align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = getelementptr inbounds i8, ptr %1, i64 48
  %22 = load i64, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %1, i64 64
  %24 = load i64, ptr %23, align 8, !tbaa !18
  %25 = getelementptr inbounds i8, ptr %1, i64 80
  %26 = load i64, ptr %25, align 8, !tbaa !19
  %27 = getelementptr inbounds i8, ptr %1, i64 32
  %28 = load i64, ptr %27, align 8, !tbaa !20
  %29 = getelementptr inbounds i8, ptr %1, i64 24
  %30 = load ptr, ptr %29, align 8, !tbaa !21
  %31 = getelementptr %"struct.langcc::ParserVertexStackItem", ptr %30, i64 %28
  %32 = getelementptr i8, ptr %31, i64 -40
  %33 = load i64, ptr %32, align 8, !tbaa !22
  %34 = getelementptr inbounds i8, ptr %1, i64 40
  %35 = load ptr, ptr %34, align 8, !tbaa !24
  %36 = add nsw i64 %22, -2
  %37 = getelementptr inbounds %"struct.langcc::SymItem", ptr %35, i64 %36
  %.sroa.44.0..sroa_idx = getelementptr inbounds i8, ptr %37, i64 19
  %.sroa.44.0.copyload = load i8, ptr %.sroa.44.0..sroa_idx, align 1
  %.sroa.56.0..sroa_idx = getelementptr inbounds i8, ptr %37, i64 21
  %.sroa.56.0.copyload = load i8, ptr %.sroa.56.0..sroa_idx, align 1
  %38 = getelementptr inbounds i8, ptr %1, i64 56
  %39 = load ptr, ptr %38, align 8, !tbaa !25
  %40 = getelementptr %"struct.langcc::Result_T", ptr %39, i64 %24
  %.sroa.4.0..sroa_idx = getelementptr i8, ptr %40, i64 -4
  %.sroa.4.0.copyload = load i32, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !26
  %41 = add nsw i64 %24, -2
  %42 = getelementptr inbounds %"struct.langcc::Result_T", ptr %39, i64 %41
  %.sroa.0.0.copyload = load ptr, ptr %42, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  %43 = getelementptr inbounds i8, ptr %.sroa.0.0.copyload, i64 48
  call void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang2cc4Node4Expr2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.45") align 8 %3, ptr noundef nonnull align 8 dereferenceable(16) %43)
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  %44 = getelementptr inbounds i8, ptr %1, i64 184
  %45 = load ptr, ptr %44, align 8, !tbaa !28
  %46 = call noundef ptr @_ZN6langcc15ParserProcState3genEv(ptr noundef nonnull align 8 dereferenceable(192) %1)
  %47 = call noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8) %46)
  %48 = trunc i64 %33 to i32
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef %48, i32 noundef %.sroa.4.0.copyload)
  call void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16) %6)
  call void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 dereferenceable(16) %7)
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %3)
  %49 = load i64, ptr %5, align 8
  invoke void @_ZN4lang2cc4Node4Expr4Ref_8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS2_2_TEEE(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.310") align 8 %4, ptr noundef %45, i64 noundef %47, i64 %49, i1 noundef zeroext false, i64 noundef -1, ptr noundef nonnull byval(%"struct.langcc::ParserAttrMask") align 8 %6, ptr noundef nonnull byval(%"struct.langcc::ParserLookahead") align 8 %7, ptr noundef nonnull %8)
          to label %50 unwind label %82

50:                                               ; preds = %2
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  call void @_ZNK6langcc6rc_ptrIN4lang2cc4Node4Expr4Ref_2_TEE6increfEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  %51 = call noundef ptr @_ZNK6langcc6rc_ptrIN4lang2cc4Node4Expr4Ref_2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %10, i32 noundef %48, i32 noundef %.sroa.4.0.copyload)
  %52 = load i64, ptr %10, align 8
  call void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef %51, i64 %52)
  %53 = load ptr, ptr %38, align 8, !tbaa !25
  %54 = getelementptr inbounds %"struct.langcc::Result_T", ptr %53, i64 %41
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 8 dereferenceable(16) %9, i64 16, i1 false), !tbaa.struct !29
  invoke void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 167, i64 noundef %33)
          to label %55 unwind label %84

55:                                               ; preds = %50
  %56 = add nsw i64 %24, -1
  %57 = add nsw i64 %28, -2
  %58 = getelementptr inbounds i8, ptr %0, i64 16
  store i8 1, ptr %58, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  store i64 1, ptr %11, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  store i64 0, ptr %12, align 8, !tbaa !31
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %60 = load i64, ptr %59, align 8, !tbaa !31
  %61 = trunc i64 %60 to i8
  store i8 %61, ptr %58, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %62 = getelementptr inbounds i8, ptr %0, i64 17
  store i8 1, ptr %62, align 1, !tbaa !30
  %63 = getelementptr inbounds i8, ptr %0, i64 18
  store i8 1, ptr %63, align 2, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  store i64 1, ptr %13, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  store i64 0, ptr %14, align 8, !tbaa !31
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %65 = load i64, ptr %64, align 8, !tbaa !31
  %66 = trunc i64 %65 to i8
  store i8 %66, ptr %63, align 2, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  %67 = getelementptr inbounds i8, ptr %0, i64 19
  store i8 1, ptr %67, align 1, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  store i64 1, ptr %15, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  %68 = zext i8 %.sroa.44.0.copyload to i64
  store i64 %68, ptr %16, align 8, !tbaa !31
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %70 = load i64, ptr %69, align 8, !tbaa !31
  %71 = trunc i64 %70 to i8
  store i8 %71, ptr %67, align 1, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  %72 = getelementptr inbounds i8, ptr %0, i64 20
  store i8 18, ptr %72, align 4, !tbaa !30
  %73 = getelementptr inbounds i8, ptr %0, i64 21
  store i8 18, ptr %73, align 1, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  store i64 18, ptr %17, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  store i64 11, ptr %18, align 8, !tbaa !31
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %75 = load i64, ptr %74, align 8, !tbaa !31
  %76 = trunc i64 %75 to i8
  store i8 %76, ptr %73, align 1, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  %77 = and i64 %75, 255
  store i64 %77, ptr %19, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #8
  %78 = zext i8 %.sroa.56.0.copyload to i64
  store i64 %78, ptr %20, align 8, !tbaa !31
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %80 = load i64, ptr %79, align 8, !tbaa !31
  %81 = trunc i64 %80 to i8
  store i8 %81, ptr %73, align 1, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  store i64 %36, ptr %21, align 8, !tbaa !5
  store i64 %56, ptr %23, align 8, !tbaa !18
  store i64 %26, ptr %25, align 8, !tbaa !19
  store i64 %57, ptr %27, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr4Ref_2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  ret void

82:                                               ; preds = %2
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  br label %86

84:                                               ; preds = %50
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr4Ref_2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  br label %86

86:                                               ; preds = %84, %82
  %.pn = phi { ptr, i32 } [ %85, %84 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn
}

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 #4 = { 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 #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress noinline uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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, !11, i64 48}
!6 = !{!"_ZTSN6langcc15ParserProcStateE", !7, i64 0, !8, i64 16, !8, i64 24, !11, i64 32, !8, i64 40, !11, i64 48, !8, i64 56, !11, i64 64, !8, i64 72, !11, i64 80, !12, i64 88, !8, i64 176, !8, i64 184}
!7 = !{!"_ZTSN6langcc6rc_ptrINS_9LexOutputEEE", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"_ZTSN6langcc7SymItemE", !11, i64 0, !11, i64 8, !13, i64 16, !11, i64 32, !11, i64 40, !11, i64 48, !14, i64 56, !17, i64 72}
!13 = !{!"_ZTSN6langcc14ParserAttrMaskE", !9, i64 0}
!14 = !{!"_ZTSN6langcc8Result_TE", !8, i64 0, !15, i64 8}
!15 = !{!"_ZTSN6langcc11TokenBoundsE", !16, i64 0, !16, i64 4}
!16 = !{!"int", !9, i64 0}
!17 = !{!"_ZTSN6langcc15ParserLookaheadE", !9, i64 0}
!18 = !{!6, !11, i64 64}
!19 = !{!6, !11, i64 80}
!20 = !{!6, !11, i64 32}
!21 = !{!6, !8, i64 24}
!22 = !{!23, !11, i64 8}
!23 = !{!"_ZTSN6langcc21ParserVertexStackItemE", !11, i64 0, !11, i64 8}
!24 = !{!6, !8, i64 40}
!25 = !{!6, !8, i64 56}
!26 = !{!16, !16, i64 0}
!27 = !{!8, !8, i64 0}
!28 = !{!6, !8, i64 184}
!29 = !{i64 0, i64 8, !27, i64 8, i64 4, !26, i64 12, i64 4, !26}
!30 = !{!9, !9, i64 0}
!31 = !{!11, !11, i64 0}


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