; LLVM IR from jzimmerman/langcc :: gen/meta/gen.ll (ZN4lang4meta6parser18_parse_proc_47_6_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.42" = type { ptr, ptr }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"struct.langcc::StrSlice" = type { %"struct.langcc::rc_ptr.161", i64, i64 }
%"struct.langcc::rc_ptr.161" = type { ptr, ptr }
%"struct.langcc::Option::_T.305" = type { i32, [32 x i8] }
%"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_ptrIN4lang4meta4Node8TestCase2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang4meta4Node8TestCase8make_extEPN6langcc5ArenaElNS3_11TokenBoundsEblNS3_14ParserAttrMaskENS3_15ParserLookaheadENS3_8StrSliceENS3_6Option2_TIS9_EEb(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.42") 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, i1 noundef zeroext) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6Option2_TINS_8StrSliceEED2Ev(ptr noundef nonnull align 4 dereferenceable(36)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc6Option2_TINS_8StrSliceEEC2ERKS3_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) unnamed_addr #6 align 2

; 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)) #4 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 #4 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 #4 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 #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i64 @_ZN6langcc26result_decode_token_boundsENS_8Result_TE(ptr, i64) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN6langcc15ParserProcState11fetch_tokenEl(ptr dead_on_unwind noalias writable sret(%"struct.langcc::StrSlice") align 8, ptr noundef nonnull align 8 dereferenceable(192), i64 noundef) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc20rc_from_ptr_ext_takeINS_6Option2_TINS_8StrSliceEEEEET_PvPNS_5ArenaE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::Option::_T.305") align 4, ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6langcc20rc_from_ptr_ext_takeIbEET_PvPNS_5ArenaE(ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN4lang4meta6parser18_parse_proc_47_6_0EPN6langcc15ParserProcStateE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::SymItem") align 8 %0, ptr noundef %1) #8 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::Result_T", align 8
  %13 = alloca %"struct.langcc::Result_T", align 8
  %14 = alloca %"struct.langcc::Result_T", align 8
  %15 = alloca %"struct.langcc::TokenBounds", align 4
  %16 = alloca %"struct.langcc::Result_T", align 8
  %17 = alloca %"struct.langcc::StrSlice", align 8
  %18 = alloca %"struct.langcc::Option::_T.305", align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca %"struct.langcc::rc_ptr.42", align 8
  %23 = alloca %"struct.langcc::TokenBounds", align 4
  %24 = alloca %"struct.langcc::ParserAttrMask", align 8
  %25 = alloca %"struct.langcc::ParserLookahead", align 8
  %26 = alloca %"struct.langcc::StrSlice", align 8
  %27 = alloca %"struct.langcc::Option::_T.305", align 4
  %28 = alloca %"struct.langcc::Result_T", align 8
  %29 = alloca %"struct.langcc::TokenBounds", align 4
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %30, i32 0, i32 5
  %32 = load i64, ptr %31, align 8, !tbaa !9
  store i64 %32, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %33, i32 0, i32 7
  %35 = load i64, ptr %34, align 8, !tbaa !20
  store i64 %35, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %36, i32 0, i32 9
  %38 = load i64, ptr %37, align 8, !tbaa !21
  store i64 %38, ptr %6, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %39, i32 0, i32 3
  %41 = load i64, ptr %40, align 8, !tbaa !22
  store i64 %41, ptr %7, align 8, !tbaa !19
  %42 = load i64, ptr %7, align 8, !tbaa !19
  %43 = sub nsw i64 %42, 3
  store i64 %43, ptr %7, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %44, i32 0, i32 2
  %46 = load ptr, ptr %45, align 8, !tbaa !23
  %47 = load i64, ptr %7, align 8, !tbaa !19
  %48 = sub nsw i64 %47, 1
  %49 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %46, i64 %48
  %50 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %49, i32 0, i32 1
  %51 = load i64, ptr %50, align 8, !tbaa !24
  store i64 %51, ptr %8, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 88, ptr %9) #9
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !26
  %55 = load i64, ptr %4, align 8, !tbaa !19
  %56 = sub nsw i64 %55, 1
  %57 = getelementptr inbounds %"struct.langcc::SymItem", ptr %54, i64 %56
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %57, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %10) #9
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %58, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !26
  %61 = load i64, ptr %4, align 8, !tbaa !19
  %62 = sub nsw i64 %61, 2
  %63 = getelementptr inbounds %"struct.langcc::SymItem", ptr %60, i64 %62
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %63, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %11) #9
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %64, i32 0, i32 4
  %66 = load ptr, ptr %65, align 8, !tbaa !26
  %67 = load i64, ptr %4, align 8, !tbaa !19
  %68 = sub nsw i64 %67, 3
  %69 = getelementptr inbounds %"struct.langcc::SymItem", ptr %66, i64 %68
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %69, i64 88, i1 false), !tbaa.struct !27
  %70 = load i64, ptr %4, align 8, !tbaa !19
  %71 = sub nsw i64 %70, 3
  store i64 %71, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %72, i32 0, i32 6
  %74 = load ptr, ptr %73, align 8, !tbaa !30
  %75 = load i64, ptr %5, align 8, !tbaa !19
  %76 = sub nsw i64 %75, 1
  %77 = getelementptr inbounds %"struct.langcc::Result_T", ptr %74, i64 %76
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %77, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #9
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %78, i32 0, i32 6
  %80 = load ptr, ptr %79, align 8, !tbaa !30
  %81 = load i64, ptr %5, align 8, !tbaa !19
  %82 = sub nsw i64 %81, 2
  %83 = getelementptr inbounds %"struct.langcc::Result_T", ptr %80, i64 %82
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %83, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %84, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !30
  %87 = load i64, ptr %5, align 8, !tbaa !19
  %88 = sub nsw i64 %87, 3
  %89 = getelementptr inbounds %"struct.langcc::Result_T", ptr %86, i64 %88
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %89, i64 16, i1 false), !tbaa.struct !31
  %90 = load i64, ptr %5, align 8, !tbaa !19
  %91 = sub nsw i64 %90, 3
  store i64 %91, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !31
  %92 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8
  %94 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %95 = load i64, ptr %94, align 8
  %96 = call i64 @_ZN6langcc26result_decode_token_boundsENS_8Result_TE(ptr %93, i64 %95)
  store i64 %96, ptr %15, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #9
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %15, i32 0, i32 0
  %99 = load i32, ptr %98, align 4, !tbaa !32
  %100 = sext i32 %99 to i64
  call void @_ZN6langcc15ParserProcState11fetch_tokenEl(ptr dead_on_unwind writable sret(%"struct.langcc::StrSlice") align 8 %17, ptr noundef nonnull align 8 dereferenceable(192) %97, i64 noundef %100)
  call void @llvm.lifetime.start.p0(i64 36, ptr %18) #9
  %101 = getelementptr inbounds %"struct.langcc::Result_T", ptr %13, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8, !tbaa !33
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %103, i32 0, i32 12
  %105 = load ptr, ptr %104, align 8, !tbaa !34
  invoke void @_ZN6langcc20rc_from_ptr_ext_takeINS_6Option2_TINS_8StrSliceEEEEET_PvPNS_5ArenaE(ptr dead_on_unwind writable sret(%"struct.langcc::Option::_T.305") align 4 %18, ptr noundef %102, ptr noundef %105)
          to label %106 unwind label %169

106:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #9
  %107 = getelementptr inbounds %"struct.langcc::Result_T", ptr %12, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !33
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %109, i32 0, i32 12
  %111 = load ptr, ptr %110, align 8, !tbaa !34
  %112 = invoke noundef zeroext i1 @_ZN6langcc20rc_from_ptr_ext_takeIbEET_PvPNS_5ArenaE(ptr noundef %108, ptr noundef %111)
          to label %113 unwind label %173

113:                                              ; preds = %106
  %114 = zext i1 %112 to i8
  store i8 %114, ptr %21, align 1, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #9
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %115, i32 0, i32 12
  %117 = load ptr, ptr %116, align 8, !tbaa !34
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = invoke noundef ptr @_ZN6langcc15ParserProcState3genEv(ptr noundef nonnull align 8 dereferenceable(192) %118)
          to label %120 unwind label %177

120:                                              ; preds = %113
  %121 = invoke noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8) %119)
          to label %122 unwind label %177

122:                                              ; preds = %120
  %123 = load i64, ptr %8, align 8, !tbaa !19
  %124 = trunc i64 %123 to i32
  %125 = getelementptr inbounds %"struct.langcc::Result_T", ptr %12, i32 0, i32 1
  %126 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %125, i32 0, i32 1
  %127 = load i32, ptr %126, align 4, !tbaa !37
  invoke void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef %124, i32 noundef %127)
          to label %128 unwind label %177

128:                                              ; preds = %122
  invoke void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16) %24)
          to label %129 unwind label %177

129:                                              ; preds = %128
  invoke void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 dereferenceable(16) %25)
          to label %130 unwind label %177

130:                                              ; preds = %129
  invoke void @_ZN6langcc8StrSliceC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %131 unwind label %177

131:                                              ; preds = %130
  invoke void @_ZN6langcc6Option2_TINS_8StrSliceEEC2ERKS3_(ptr noundef nonnull align 4 dereferenceable(36) %27, ptr noundef nonnull align 4 dereferenceable(36) %18)
          to label %132 unwind label %181

132:                                              ; preds = %131
  %133 = load i8, ptr %21, align 1, !tbaa !35, !range !38, !noundef !39
  %134 = trunc i8 %133 to i1
  %135 = load i64, ptr %23, align 4
  invoke void @_ZN4lang4meta4Node8TestCase8make_extEPN6langcc5ArenaElNS3_11TokenBoundsEblNS3_14ParserAttrMaskENS3_15ParserLookaheadENS3_8StrSliceENS3_6Option2_TIS9_EEb(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.42") align 8 %22, ptr noundef %117, i64 noundef %121, i64 %135, i1 noundef zeroext false, i64 noundef -1, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8 %24, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8 %25, ptr noundef %26, ptr noundef %27, i1 noundef zeroext %134)
          to label %136 unwind label %185

136:                                              ; preds = %132
  call void @_ZN6langcc6Option2_TINS_8StrSliceEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %27) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  invoke void @_ZNK6langcc6rc_ptrIN4lang4meta4Node8TestCase2_TEE6increfEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %137 unwind label %190

137:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #9
  %138 = invoke noundef ptr @_ZNK6langcc6rc_ptrIN4lang4meta4Node8TestCase2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %139 unwind label %194

139:                                              ; preds = %137
  %140 = load i64, ptr %8, align 8, !tbaa !19
  %141 = trunc i64 %140 to i32
  %142 = getelementptr inbounds %"struct.langcc::Result_T", ptr %12, i32 0, i32 1
  %143 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %142, i32 0, i32 1
  %144 = load i32, ptr %143, align 4, !tbaa !37
  invoke void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %29, i32 noundef %141, i32 noundef %144)
          to label %145 unwind label %194

145:                                              ; preds = %139
  %146 = load i64, ptr %29, align 4
  invoke void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef %138, i64 %146)
          to label %147 unwind label %194

147:                                              ; preds = %145
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %148, i32 0, i32 6
  %150 = load ptr, ptr %149, align 8, !tbaa !30
  %151 = load i64, ptr %5, align 8, !tbaa !19
  %152 = getelementptr inbounds %"struct.langcc::Result_T", ptr %150, i64 %151
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %152, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !31
  %153 = load i64, ptr %5, align 8, !tbaa !19
  %154 = add nsw i64 %153, 1
  store i64 %154, ptr %5, align 8, !tbaa !19
  %155 = load i64, ptr %8, align 8, !tbaa !19
  invoke void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 112, i64 noundef %155)
          to label %156 unwind label %194

156:                                              ; preds = %147
  %157 = load i64, ptr %4, align 8, !tbaa !19
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %158, i32 0, i32 5
  store i64 %157, ptr %159, align 8, !tbaa !9
  %160 = load i64, ptr %5, align 8, !tbaa !19
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %161, i32 0, i32 7
  store i64 %160, ptr %162, align 8, !tbaa !20
  %163 = load i64, ptr %6, align 8, !tbaa !19
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %164, i32 0, i32 9
  store i64 %163, ptr %165, align 8, !tbaa !21
  %166 = load i64, ptr %7, align 8, !tbaa !19
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  %168 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %167, i32 0, i32 3
  store i64 %166, ptr %168, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node8TestCase2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #9
  call void @_ZN6langcc6Option2_TINS_8StrSliceEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %18) #9
  call void @llvm.lifetime.end.p0(i64 36, ptr %18) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  ret void

169:                                              ; preds = %2
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %19, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %20, align 4
  br label %201

173:                                              ; preds = %106
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %19, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %20, align 4
  br label %200

177:                                              ; preds = %130, %129, %128, %122, %120, %113
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %19, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %20, align 4
  br label %199

181:                                              ; preds = %131
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %19, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %20, align 4
  br label %189

185:                                              ; preds = %132
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %19, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %20, align 4
  call void @_ZN6langcc6Option2_TINS_8StrSliceEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %27) #9
  br label %189

189:                                              ; preds = %185, %181
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  br label %199

190:                                              ; preds = %136
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %19, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %20, align 4
  br label %198

194:                                              ; preds = %147, %145, %139, %137
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %19, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  br label %198

198:                                              ; preds = %194, %190
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node8TestCase2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #9
  br label %199

199:                                              ; preds = %198, %189, %177
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  br label %200

200:                                              ; preds = %199, %173
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #9
  call void @_ZN6langcc6Option2_TINS_8StrSliceEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %18) #9
  br label %201

201:                                              ; preds = %200, %169
  call void @llvm.lifetime.end.p0(i64 36, ptr %18) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  br label %202

202:                                              ; preds = %201
  %203 = load ptr, ptr %19, align 8
  %204 = load i32, ptr %20, align 4
  %205 = insertvalue { ptr, i32 } poison, ptr %203, 0
  %206 = insertvalue { ptr, i32 } %205, i32 %204, 1
  resume { ptr, i32 } %206
}

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6langcc6rc_ptrIN4lang4meta4Node8TestCase2_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 = { 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 #5 = { 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 #6 = { 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { 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 = !{!16, !17, i64 0}
!33 = !{!15, !6, i64 0}
!34 = !{!10, !6, i64 184}
!35 = !{!36, !36, i64 0}
!36 = !{!"bool", !7, i64 0}
!37 = !{!15, !17, i64 12}
!38 = !{i8 0, i8 2}
!39 = !{}


; 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.42" = type { ptr, ptr }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"struct.langcc::StrSlice" = type { %"struct.langcc::rc_ptr.161", i64, i64 }
%"struct.langcc::rc_ptr.161" = type { ptr, ptr }
%"struct.langcc::Option::_T.305" = type { i32, [32 x i8] }
%"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_ptrIN4lang4meta4Node8TestCase2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang4meta4Node8TestCase8make_extEPN6langcc5ArenaElNS3_11TokenBoundsEblNS3_14ParserAttrMaskENS3_15ParserLookaheadENS3_8StrSliceENS3_6Option2_TIS9_EEb(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.42") 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, i1 noundef zeroext) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6Option2_TINS_8StrSliceEED2Ev(ptr noundef nonnull align 4 dereferenceable(36)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc6Option2_TINS_8StrSliceEEC2ERKS3_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) unnamed_addr #6 align 2

; 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 #4 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 #4 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 #4 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 #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i64 @_ZN6langcc26result_decode_token_boundsENS_8Result_TE(ptr, i64) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN6langcc15ParserProcState11fetch_tokenEl(ptr dead_on_unwind noalias writable sret(%"struct.langcc::StrSlice") align 8, ptr noundef nonnull align 8 dereferenceable(192), i64 noundef) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc20rc_from_ptr_ext_takeINS_6Option2_TINS_8StrSliceEEEEET_PvPNS_5ArenaE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::Option::_T.305") align 4, ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6langcc20rc_from_ptr_ext_takeIbEET_PvPNS_5ArenaE(ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN4lang4meta6parser18_parse_proc_47_6_0EPN6langcc15ParserProcStateE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::SymItem") align 8 %0, ptr noundef %1) local_unnamed_addr #8 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.langcc::StrSlice", align 8
  %4 = alloca %"struct.langcc::Option::_T.305", align 4
  %5 = alloca %"struct.langcc::rc_ptr.42", 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::StrSlice", align 8
  %10 = alloca %"struct.langcc::Option::_T.305", align 4
  %11 = alloca %"struct.langcc::Result_T", align 8
  %12 = alloca %"struct.langcc::TokenBounds", align 8
  %13 = getelementptr inbounds i8, ptr %1, i64 48
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 64
  %16 = load i64, ptr %15, align 8, !tbaa !18
  %17 = getelementptr inbounds i8, ptr %1, i64 80
  %18 = load i64, ptr %17, align 8, !tbaa !19
  %19 = getelementptr inbounds i8, ptr %1, i64 32
  %20 = load i64, ptr %19, align 8, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %1, i64 24
  %22 = load ptr, ptr %21, align 8, !tbaa !21
  %23 = getelementptr %"struct.langcc::ParserVertexStackItem", ptr %22, i64 %20
  %24 = getelementptr i8, ptr %23, i64 -56
  %25 = load i64, ptr %24, align 8, !tbaa !22
  %26 = getelementptr inbounds i8, ptr %1, i64 56
  %27 = load ptr, ptr %26, align 8, !tbaa !24
  %28 = getelementptr %"struct.langcc::Result_T", ptr %27, i64 %16
  %29 = getelementptr i8, ptr %28, i64 -16
  %.sroa.07.0.copyload = load ptr, ptr %29, align 8, !tbaa !25
  %.sroa.59.0..sroa_idx = getelementptr i8, ptr %28, i64 -4
  %.sroa.59.0.copyload = load i32, ptr %.sroa.59.0..sroa_idx, align 4, !tbaa !26
  %30 = getelementptr i8, ptr %28, i64 -32
  %.sroa.05.0.copyload = load ptr, ptr %30, align 8, !tbaa !25
  %31 = add nsw i64 %16, -3
  %32 = getelementptr inbounds %"struct.langcc::Result_T", ptr %27, i64 %31
  %.sroa.03.0.copyload = load ptr, ptr %32, align 8, !tbaa !25
  %.sroa.54.0..sroa_idx = getelementptr inbounds i8, ptr %32, i64 8
  %.sroa.54.0.copyload = load i64, ptr %.sroa.54.0..sroa_idx, align 8
  %33 = tail call i64 @_ZN6langcc26result_decode_token_boundsENS_8Result_TE(ptr %.sroa.03.0.copyload, i64 %.sroa.54.0.copyload)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #9
  %sext = shl i64 %33, 32
  %34 = ashr exact i64 %sext, 32
  call void @_ZN6langcc15ParserProcState11fetch_tokenEl(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::StrSlice") align 8 %3, ptr noundef nonnull align 8 dereferenceable(192) %1, i64 noundef %34)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %4) #9
  %35 = getelementptr inbounds i8, ptr %1, i64 184
  %36 = load ptr, ptr %35, align 8, !tbaa !27
  invoke void @_ZN6langcc20rc_from_ptr_ext_takeINS_6Option2_TINS_8StrSliceEEEEET_PvPNS_5ArenaE(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::Option::_T.305") align 4 %4, ptr noundef %.sroa.05.0.copyload, ptr noundef %36)
          to label %37 unwind label %57

37:                                               ; preds = %2
  %38 = load ptr, ptr %35, align 8, !tbaa !27
  %39 = invoke noundef zeroext i1 @_ZN6langcc20rc_from_ptr_ext_takeIbEET_PvPNS_5ArenaE(ptr noundef %.sroa.07.0.copyload, ptr noundef %38)
          to label %40 unwind label %59

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  %41 = load ptr, ptr %35, align 8, !tbaa !27
  %42 = call noundef ptr @_ZN6langcc15ParserProcState3genEv(ptr noundef nonnull align 8 dereferenceable(192) %1)
  %43 = call noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8) %42)
  %44 = trunc i64 %25 to i32
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef %44, i32 noundef %.sroa.59.0.copyload)
  call void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16) %7)
  call void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 dereferenceable(16) %8)
  invoke void @_ZN6langcc8StrSliceC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %45 unwind label %61

45:                                               ; preds = %40
  invoke void @_ZN6langcc6Option2_TINS_8StrSliceEEC2ERKS3_(ptr noundef nonnull align 4 dereferenceable(36) %10, ptr noundef nonnull align 4 dereferenceable(36) %4)
          to label %46 unwind label %63

46:                                               ; preds = %45
  %47 = load i64, ptr %6, align 8
  invoke void @_ZN4lang4meta4Node8TestCase8make_extEPN6langcc5ArenaElNS3_11TokenBoundsEblNS3_14ParserAttrMaskENS3_15ParserLookaheadENS3_8StrSliceENS3_6Option2_TIS9_EEb(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.42") align 8 %5, ptr noundef %41, i64 noundef %43, i64 %47, 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, i1 noundef zeroext %39)
          to label %48 unwind label %65

48:                                               ; preds = %46
  call void @_ZN6langcc6Option2_TINS_8StrSliceEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %10) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @_ZNK6langcc6rc_ptrIN4lang4meta4Node8TestCase2_TEE6increfEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  %49 = call noundef ptr @_ZNK6langcc6rc_ptrIN4lang4meta4Node8TestCase2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %44, i32 noundef %.sroa.59.0.copyload)
  %50 = load i64, ptr %12, align 8
  call void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %49, i64 %50)
  %51 = load ptr, ptr %26, align 8, !tbaa !24
  %52 = getelementptr inbounds %"struct.langcc::Result_T", ptr %51, i64 %31
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %52, 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 112, i64 noundef %25)
          to label %53 unwind label %68

53:                                               ; preds = %48
  %54 = add nsw i64 %16, -2
  %55 = add nsw i64 %14, -3
  %56 = add nsw i64 %20, -3
  store i64 %55, ptr %13, align 8, !tbaa !5
  store i64 %54, ptr %15, align 8, !tbaa !18
  store i64 %18, ptr %17, align 8, !tbaa !19
  store i64 %56, ptr %19, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node8TestCase2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @_ZN6langcc6Option2_TINS_8StrSliceEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %4) #9
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %4) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  ret void

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

59:                                               ; preds = %37
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %71

61:                                               ; preds = %40
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %70

63:                                               ; preds = %45
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %67

65:                                               ; preds = %46
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6Option2_TINS_8StrSliceEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %10) #9
  br label %67

67:                                               ; preds = %65, %63
  %.pn = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ]
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  br label %70

68:                                               ; preds = %48
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node8TestCase2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  br label %70

70:                                               ; preds = %68, %67, %61
  %.pn56 = phi { ptr, i32 } [ %69, %68 ], [ %.pn, %67 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  br label %71

71:                                               ; preds = %70, %59
  %.pn56.pn = phi { ptr, i32 } [ %.pn56, %70 ], [ %60, %59 ]
  call void @_ZN6langcc6Option2_TINS_8StrSliceEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %4) #9
  br label %72

72:                                               ; preds = %71, %57
  %.pn56.pn.pn = phi { ptr, i32 } [ %.pn56.pn, %71 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %4) #9
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn56.pn.pn
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK6langcc6rc_ptrIN4lang4meta4Node8TestCase2_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_ptrIN4lang4meta4Node8TestCase2_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 = { 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 #5 = { 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 #6 = { 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { 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}


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