; LLVM IR from jzimmerman/langcc :: gen/cc/gen.ll (ZN4lang2cc6parser18_parse_proc_29_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.39" = type { ptr, ptr }
%"struct.langcc::rc_ptr.45" = type { ptr, ptr }
%"struct.langcc::rc_ptr.246" = 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_ptrIN4lang2cc4Node4Stmt2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 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_polyIN4lang2cc4Node4Stmt2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.39") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #4 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_ptrIN4lang2cc4Node4Stmt2If2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang2cc4Node4Stmt2If8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS1_4Expr2_TEEENSA_INS2_2_TEEE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.246") 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, 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: mustprogress noinline uwtable
define dso_local void @_ZN4lang2cc6parser18_parse_proc_29_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::SymItem", align 8
  %12 = alloca %"struct.langcc::SymItem", align 8
  %13 = alloca %"struct.langcc::SymItem", align 8
  %14 = alloca %"struct.langcc::Result_T", align 8
  %15 = alloca %"struct.langcc::Result_T", align 8
  %16 = alloca %"struct.langcc::Result_T", align 8
  %17 = alloca %"struct.langcc::Result_T", align 8
  %18 = alloca %"struct.langcc::Result_T", align 8
  %19 = alloca %"struct.langcc::rc_ptr.45", align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"struct.langcc::rc_ptr.39", align 8
  %23 = alloca %"struct.langcc::rc_ptr.246", align 8
  %24 = alloca %"struct.langcc::TokenBounds", align 4
  %25 = alloca %"struct.langcc::ParserAttrMask", align 8
  %26 = alloca %"struct.langcc::ParserLookahead", align 8
  %27 = alloca %"struct.langcc::rc_ptr.45", align 8
  %28 = alloca %"struct.langcc::rc_ptr.39", align 8
  %29 = alloca %"struct.langcc::Result_T", align 8
  %30 = alloca %"struct.langcc::TokenBounds", align 4
  %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, 5
  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
  call void @llvm.lifetime.start.p0(i64 88, ptr %11) #8
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !26
  %70 = load i64, ptr %4, align 8, !tbaa !19
  %71 = sub nsw i64 %70, 3
  %72 = getelementptr inbounds %"struct.langcc::SymItem", ptr %69, i64 %71
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %72, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %12) #8
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !26
  %76 = load i64, ptr %4, align 8, !tbaa !19
  %77 = sub nsw i64 %76, 4
  %78 = getelementptr inbounds %"struct.langcc::SymItem", ptr %75, i64 %77
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %78, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %13) #8
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !26
  %82 = load i64, ptr %4, align 8, !tbaa !19
  %83 = sub nsw i64 %82, 5
  %84 = getelementptr inbounds %"struct.langcc::SymItem", ptr %81, i64 %83
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %84, i64 88, i1 false), !tbaa.struct !27
  %85 = load i64, ptr %4, align 8, !tbaa !19
  %86 = sub nsw i64 %85, 5
  store i64 %86, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %87, i32 0, i32 6
  %89 = load ptr, ptr %88, align 8, !tbaa !30
  %90 = load i64, ptr %5, align 8, !tbaa !19
  %91 = sub nsw i64 %90, 1
  %92 = getelementptr inbounds %"struct.langcc::Result_T", ptr %89, i64 %91
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %92, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %93, i32 0, i32 6
  %95 = load ptr, ptr %94, align 8, !tbaa !30
  %96 = load i64, ptr %5, align 8, !tbaa !19
  %97 = sub nsw i64 %96, 2
  %98 = getelementptr inbounds %"struct.langcc::Result_T", ptr %95, i64 %97
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %98, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %99, i32 0, i32 6
  %101 = load ptr, ptr %100, align 8, !tbaa !30
  %102 = load i64, ptr %5, align 8, !tbaa !19
  %103 = sub nsw i64 %102, 3
  %104 = getelementptr inbounds %"struct.langcc::Result_T", ptr %101, i64 %103
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %104, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %105, i32 0, i32 6
  %107 = load ptr, ptr %106, align 8, !tbaa !30
  %108 = load i64, ptr %5, align 8, !tbaa !19
  %109 = sub nsw i64 %108, 4
  %110 = getelementptr inbounds %"struct.langcc::Result_T", ptr %107, i64 %109
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %110, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %111, i32 0, i32 6
  %113 = load ptr, ptr %112, align 8, !tbaa !30
  %114 = load i64, ptr %5, align 8, !tbaa !19
  %115 = sub nsw i64 %114, 5
  %116 = getelementptr inbounds %"struct.langcc::Result_T", ptr %113, i64 %115
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %116, i64 16, i1 false), !tbaa.struct !31
  %117 = load i64, ptr %5, align 8, !tbaa !19
  %118 = sub nsw i64 %117, 5
  store i64 %118, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  %119 = getelementptr inbounds %"struct.langcc::Result_T", ptr %16, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !32
  %121 = getelementptr inbounds i8, ptr %120, 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 %19, ptr noundef nonnull align 8 dereferenceable(16) %121)
  invoke void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %122 unwind label %195

122:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  %123 = getelementptr inbounds %"struct.langcc::Result_T", ptr %14, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !32
  %125 = getelementptr inbounds i8, ptr %124, i64 48
  invoke void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang2cc4Node4Stmt2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.39") align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %125)
          to label %126 unwind label %199

126:                                              ; preds = %122
  invoke void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2_TEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %127 unwind label %203

127:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %128, i32 0, i32 12
  %130 = load ptr, ptr %129, align 8, !tbaa !33
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = invoke noundef ptr @_ZN6langcc15ParserProcState3genEv(ptr noundef nonnull align 8 dereferenceable(192) %131)
          to label %133 unwind label %207

133:                                              ; preds = %127
  %134 = invoke noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8) %132)
          to label %135 unwind label %207

135:                                              ; preds = %133
  %136 = load i64, ptr %8, align 8, !tbaa !19
  %137 = trunc i64 %136 to i32
  %138 = getelementptr inbounds %"struct.langcc::Result_T", ptr %14, i32 0, i32 1
  %139 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %138, i32 0, i32 1
  %140 = load i32, ptr %139, align 4, !tbaa !34
  invoke void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %24, i32 noundef %137, i32 noundef %140)
          to label %141 unwind label %207

141:                                              ; preds = %135
  invoke void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16) %25)
          to label %142 unwind label %207

142:                                              ; preds = %141
  invoke void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 dereferenceable(16) %26)
          to label %143 unwind label %207

143:                                              ; preds = %142
  invoke void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %144 unwind label %207

144:                                              ; preds = %143
  invoke void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %145 unwind label %211

145:                                              ; preds = %144
  %146 = load i64, ptr %24, align 4
  invoke void @_ZN4lang2cc4Node4Stmt2If8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS1_4Expr2_TEEENSA_INS2_2_TEEE(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.246") align 8 %23, ptr noundef %130, i64 noundef %134, i64 %146, i1 noundef zeroext false, i64 noundef -1, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8 %25, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8 %26, ptr noundef %27, ptr noundef %28)
          to label %147 unwind label %215

147:                                              ; preds = %145
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #8
  invoke void @_ZNK6langcc6rc_ptrIN4lang2cc4Node4Stmt2If2_TEE6increfEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %148 unwind label %220

148:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #8
  %149 = invoke noundef ptr @_ZNK6langcc6rc_ptrIN4lang2cc4Node4Stmt2If2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %150 unwind label %224

150:                                              ; preds = %148
  %151 = load i64, ptr %8, align 8, !tbaa !19
  %152 = trunc i64 %151 to i32
  %153 = getelementptr inbounds %"struct.langcc::Result_T", ptr %14, i32 0, i32 1
  %154 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %153, i32 0, i32 1
  %155 = load i32, ptr %154, align 4, !tbaa !34
  invoke void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %30, i32 noundef %152, i32 noundef %155)
          to label %156 unwind label %224

156:                                              ; preds = %150
  %157 = load i64, ptr %30, align 4
  invoke void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %149, i64 %157)
          to label %158 unwind label %224

158:                                              ; preds = %156
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %159, i32 0, i32 6
  %161 = load ptr, ptr %160, align 8, !tbaa !30
  %162 = load i64, ptr %5, align 8, !tbaa !19
  %163 = getelementptr inbounds %"struct.langcc::Result_T", ptr %161, i64 %162
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %163, ptr align 8 %29, i64 16, i1 false), !tbaa.struct !31
  %164 = load i64, ptr %5, align 8, !tbaa !19
  %165 = add nsw i64 %164, 1
  store i64 %165, ptr %5, align 8, !tbaa !19
  %166 = load i64, ptr %8, align 8, !tbaa !19
  invoke void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 162, i64 noundef %166)
          to label %167 unwind label %224

167:                                              ; preds = %158
  %168 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %169 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %168, i32 0, i32 0
  %170 = getelementptr inbounds [16 x i8], ptr %169, i64 0, i64 0
  store i8 1, ptr %170, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %171 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %172 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %171, i32 0, i32 0
  %173 = getelementptr inbounds [16 x i8], ptr %172, i64 0, i64 0
  %174 = load i8, ptr %173, align 8, !tbaa !28
  %175 = zext i8 %174 to i64
  store i64 %175, ptr %31, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  store i64 0, ptr %32, align 8, !tbaa !19
  %176 = 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 %177 unwind label %228

177:                                              ; preds = %167
  %178 = load i64, ptr %176, align 8, !tbaa !19
  %179 = trunc i64 %178 to i8
  %180 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %181 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %180, i32 0, i32 0
  %182 = getelementptr inbounds [16 x i8], ptr %181, i64 0, i64 0
  store i8 %179, ptr %182, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  %183 = load i64, ptr %4, align 8, !tbaa !19
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %184, i32 0, i32 5
  store i64 %183, ptr %185, align 8, !tbaa !9
  %186 = load i64, ptr %5, align 8, !tbaa !19
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %187, i32 0, i32 7
  store i64 %186, ptr %188, align 8, !tbaa !20
  %189 = load i64, ptr %6, align 8, !tbaa !19
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %190, i32 0, i32 9
  store i64 %189, ptr %191, align 8, !tbaa !21
  %192 = load i64, ptr %7, align 8, !tbaa !19
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %193, i32 0, i32 3
  store i64 %192, ptr %194, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2If2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 88, 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

195:                                              ; preds = %2
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %20, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %21, align 4
  br label %237

199:                                              ; preds = %122
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %20, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %21, align 4
  br label %236

203:                                              ; preds = %126
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %20, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %21, align 4
  br label %235

207:                                              ; preds = %143, %142, %141, %135, %133, %127
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %20, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %21, align 4
  br label %234

211:                                              ; preds = %144
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %20, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %21, align 4
  br label %219

215:                                              ; preds = %145
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %20, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %21, align 4
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #8
  br label %219

219:                                              ; preds = %215, %211
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #8
  br label %234

220:                                              ; preds = %147
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %20, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %21, align 4
  br label %233

224:                                              ; preds = %158, %156, %150, %148
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %20, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %21, align 4
  br label %232

228:                                              ; preds = %167
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %20, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %21, 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 %232

232:                                              ; preds = %228, %224
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  br label %233

233:                                              ; preds = %232, %220
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2If2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  br label %234

234:                                              ; preds = %233, %219, %207
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  br label %235

235:                                              ; preds = %234, %203
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #8
  br label %236

236:                                              ; preds = %235, %199
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  br label %237

237:                                              ; preds = %236, %195
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 88, 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 %238

238:                                              ; preds = %237
  %239 = load ptr, ptr %20, align 8
  %240 = load i32, ptr %21, align 4
  %241 = insertvalue { ptr, i32 } poison, ptr %239, 0
  %242 = insertvalue { ptr, i32 } %241, i32 %240, 1
  resume { ptr, i32 } %242
}

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6langcc6rc_ptrIN4lang2cc4Node4Stmt2If2_TEE3getEv(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

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.39" = type { ptr, ptr }
%"struct.langcc::rc_ptr.45" = type { ptr, ptr }
%"struct.langcc::rc_ptr.246" = 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_ptrIN4lang2cc4Node4Stmt2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 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_polyIN4lang2cc4Node4Stmt2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.39") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 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_ptrIN4lang2cc4Node4Stmt2If2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang2cc4Node4Stmt2If8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS1_4Expr2_TEEENSA_INS2_2_TEEE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.246") 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, 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: mustprogress noinline uwtable
define dso_local void @_ZN4lang2cc6parser18_parse_proc_29_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.39", align 8
  %5 = alloca %"struct.langcc::rc_ptr.246", align 8
  %6 = alloca %"struct.langcc::TokenBounds", align 8
  %7 = alloca %"struct.langcc::ParserAttrMask", align 8
  %8 = alloca %"struct.langcc::ParserLookahead", align 8
  %9 = alloca %"struct.langcc::rc_ptr.45", align 8
  %10 = alloca %"struct.langcc::rc_ptr.39", align 8
  %11 = alloca %"struct.langcc::Result_T", align 8
  %12 = alloca %"struct.langcc::TokenBounds", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = getelementptr inbounds i8, ptr %1, i64 48
  %16 = load i64, ptr %15, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %1, i64 64
  %18 = load i64, ptr %17, align 8, !tbaa !18
  %19 = getelementptr inbounds i8, ptr %1, i64 80
  %20 = load i64, ptr %19, align 8, !tbaa !19
  %21 = getelementptr inbounds i8, ptr %1, i64 32
  %22 = load i64, ptr %21, align 8, !tbaa !20
  %23 = getelementptr inbounds i8, ptr %1, i64 24
  %24 = load ptr, ptr %23, align 8, !tbaa !21
  %25 = getelementptr %"struct.langcc::ParserVertexStackItem", ptr %24, i64 %22
  %26 = getelementptr i8, ptr %25, i64 -88
  %27 = load i64, ptr %26, align 8, !tbaa !22
  %28 = getelementptr inbounds i8, ptr %1, i64 56
  %29 = load ptr, ptr %28, align 8, !tbaa !24
  %30 = getelementptr %"struct.langcc::Result_T", ptr %29, i64 %18
  %31 = getelementptr i8, ptr %30, i64 -16
  %.sroa.01.0.copyload = load ptr, ptr %31, align 8, !tbaa !25
  %.sroa.53.0..sroa_idx = getelementptr i8, ptr %30, i64 -4
  %.sroa.53.0.copyload = load i32, ptr %.sroa.53.0..sroa_idx, align 4, !tbaa !26
  %32 = getelementptr i8, ptr %30, i64 -48
  %.sroa.0.0.copyload = load ptr, ptr %32, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  %33 = 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) %33)
  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
  %34 = getelementptr inbounds i8, ptr %.sroa.01.0.copyload, i64 48
  invoke void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang2cc4Node4Stmt2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.39") align 8 %4, ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %35 unwind label %56

35:                                               ; preds = %2
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2_TEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  %36 = getelementptr inbounds i8, ptr %1, i64 184
  %37 = load ptr, ptr %36, align 8, !tbaa !27
  %38 = call noundef ptr @_ZN6langcc15ParserProcState3genEv(ptr noundef nonnull align 8 dereferenceable(192) %1)
  %39 = call noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8) %38)
  %40 = trunc i64 %27 to i32
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef %40, i32 noundef %.sroa.53.0.copyload)
  call void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16) %7)
  call void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 dereferenceable(16) %8)
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %41 = load i64, ptr %6, align 8
  invoke void @_ZN4lang2cc4Node4Stmt2If8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS1_4Expr2_TEEENSA_INS2_2_TEEE(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.246") align 8 %5, ptr noundef %37, i64 noundef %39, i64 %41, i1 noundef zeroext false, i64 noundef -1, ptr noundef nonnull byval(%"struct.langcc::ParserAttrMask") align 8 %7, ptr noundef nonnull byval(%"struct.langcc::ParserLookahead") align 8 %8, ptr noundef nonnull %9, ptr noundef nonnull %10)
          to label %42 unwind label %58

42:                                               ; preds = %35
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @_ZNK6langcc6rc_ptrIN4lang2cc4Node4Stmt2If2_TEE6increfEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  %43 = call noundef ptr @_ZNK6langcc6rc_ptrIN4lang2cc4Node4Stmt2If2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %40, i32 noundef %.sroa.53.0.copyload)
  %44 = load i64, ptr %12, align 8
  call void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %43, i64 %44)
  %45 = load ptr, ptr %28, align 8, !tbaa !24
  %46 = getelementptr %"struct.langcc::Result_T", ptr %45, i64 %18
  %47 = getelementptr i8, ptr %46, i64 -80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 8 dereferenceable(16) %11, i64 16, i1 false), !tbaa.struct !28
  invoke void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 162, i64 noundef %27)
          to label %48 unwind label %60

48:                                               ; preds = %42
  %49 = add nsw i64 %18, -4
  %50 = add nsw i64 %16, -5
  %51 = add nsw i64 %22, -5
  %52 = getelementptr inbounds i8, ptr %0, i64 16
  store i8 1, ptr %52, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  store i64 1, ptr %13, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  store i64 0, ptr %14, align 8, !tbaa !30
  %53 = 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)
  %54 = load i64, ptr %53, align 8, !tbaa !30
  %55 = trunc i64 %54 to i8
  store i8 %55, ptr %52, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  store i64 %50, ptr %15, align 8, !tbaa !5
  store i64 %49, ptr %17, align 8, !tbaa !18
  store i64 %20, ptr %19, align 8, !tbaa !19
  store i64 %51, ptr %21, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2If2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2_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

56:                                               ; preds = %2
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %63

58:                                               ; preds = %35
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  br label %62

60:                                               ; preds = %42
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2If2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  br label %62

62:                                               ; preds = %60, %58
  %.pn = phi { ptr, i32 } [ %61, %60 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  br label %63

63:                                               ; preds = %62, %56
  %.pn.pn = phi { ptr, i32 } [ %.pn, %62 ], [ %57, %56 ]
  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.pn
}

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK6langcc6rc_ptrIN4lang2cc4Node4Stmt2If2_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_ptrIN4lang2cc4Node4Stmt2If2_TEE3getEv(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

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 56}
!25 = !{!8, !8, i64 0}
!26 = !{!16, !16, i64 0}
!27 = !{!6, !8, i64 184}
!28 = !{i64 0, i64 8, !25, i64 8, i64 4, !26, i64 12, i64 4, !26}
!29 = !{!9, !9, i64 0}
!30 = !{!11, !11, i64 0}


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