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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.langcc::rc_ptr.45" = type { ptr, ptr }
%"struct.langcc::rc_ptr.250" = 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::rc_ptr.422" = type { ptr, ptr }
%"struct.langcc::ParserProcState" = type { %"struct.langcc::rc_ptr.16", ptr, ptr, i64, ptr, i64, ptr, i64, ptr, i64, %"struct.langcc::SymItem", ptr, ptr }
%"struct.langcc::rc_ptr.16" = type { ptr, ptr }
%"struct.langcc::ParserVertexStackItem" = type { i64, i64 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc24enable_rc_from_this_poly17rc_from_this_polyIN4lang2cc4Node4Expr2_TEEENS_6rc_ptrIT_EEv(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.45") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang2cc4Node4Stmt6Switch8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS1_4Expr2_TEEENSA_INS4_3VecINSA_INS1_10SwitchCase2_TEEEEEEE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.250") 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 void @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEEC2ERKS9_(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_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 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)) #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_35_4_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::SymItem", align 8
  %15 = alloca %"struct.langcc::SymItem", 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::Result_T", align 8
  %20 = alloca %"struct.langcc::Result_T", align 8
  %21 = alloca %"struct.langcc::Result_T", align 8
  %22 = alloca %"struct.langcc::Result_T", align 8
  %23 = alloca %"struct.langcc::rc_ptr.45", align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"struct.langcc::rc_ptr.422", align 8
  %27 = alloca %"struct.langcc::rc_ptr.250", align 8
  %28 = alloca %"struct.langcc::TokenBounds", align 4
  %29 = alloca %"struct.langcc::ParserAttrMask", align 8
  %30 = alloca %"struct.langcc::ParserLookahead", align 8
  %31 = alloca %"struct.langcc::rc_ptr.45", align 8
  %32 = alloca %"struct.langcc::rc_ptr.422", align 8
  %33 = alloca %"struct.langcc::Result_T", align 8
  %34 = 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) #8
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %35, i32 0, i32 5
  %37 = load i64, ptr %36, align 8, !tbaa !9
  store i64 %37, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %38, i32 0, i32 7
  %40 = load i64, ptr %39, align 8, !tbaa !20
  store i64 %40, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %41, i32 0, i32 9
  %43 = load i64, ptr %42, align 8, !tbaa !21
  store i64 %43, ptr %6, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %44, i32 0, i32 3
  %46 = load i64, ptr %45, align 8, !tbaa !22
  store i64 %46, ptr %7, align 8, !tbaa !19
  %47 = load i64, ptr %7, align 8, !tbaa !19
  %48 = sub nsw i64 %47, 7
  store i64 %48, ptr %7, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %49, i32 0, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !23
  %52 = load i64, ptr %7, align 8, !tbaa !19
  %53 = sub nsw i64 %52, 1
  %54 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %51, i64 %53
  %55 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %54, i32 0, i32 1
  %56 = load i64, ptr %55, align 8, !tbaa !24
  store i64 %56, ptr %8, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 88, ptr %9) #8
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %57, i32 0, i32 4
  %59 = load ptr, ptr %58, align 8, !tbaa !26
  %60 = load i64, ptr %4, align 8, !tbaa !19
  %61 = sub nsw i64 %60, 1
  %62 = getelementptr inbounds %"struct.langcc::SymItem", ptr %59, i64 %61
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %62, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %10) #8
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %63, i32 0, i32 4
  %65 = load ptr, ptr %64, align 8, !tbaa !26
  %66 = load i64, ptr %4, align 8, !tbaa !19
  %67 = sub nsw i64 %66, 2
  %68 = getelementptr inbounds %"struct.langcc::SymItem", ptr %65, i64 %67
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %68, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %11) #8
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %69, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !26
  %72 = load i64, ptr %4, align 8, !tbaa !19
  %73 = sub nsw i64 %72, 3
  %74 = getelementptr inbounds %"struct.langcc::SymItem", ptr %71, i64 %73
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %74, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %12) #8
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %75, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !26
  %78 = load i64, ptr %4, align 8, !tbaa !19
  %79 = sub nsw i64 %78, 4
  %80 = getelementptr inbounds %"struct.langcc::SymItem", ptr %77, i64 %79
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %80, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %13) #8
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %81, i32 0, i32 4
  %83 = load ptr, ptr %82, align 8, !tbaa !26
  %84 = load i64, ptr %4, align 8, !tbaa !19
  %85 = sub nsw i64 %84, 5
  %86 = getelementptr inbounds %"struct.langcc::SymItem", ptr %83, i64 %85
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %86, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %14) #8
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %87, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !26
  %90 = load i64, ptr %4, align 8, !tbaa !19
  %91 = sub nsw i64 %90, 6
  %92 = getelementptr inbounds %"struct.langcc::SymItem", ptr %89, i64 %91
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %92, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %15) #8
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !26
  %96 = load i64, ptr %4, align 8, !tbaa !19
  %97 = sub nsw i64 %96, 7
  %98 = getelementptr inbounds %"struct.langcc::SymItem", ptr %95, i64 %97
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %98, i64 88, i1 false), !tbaa.struct !27
  %99 = load i64, ptr %4, align 8, !tbaa !19
  %100 = sub nsw i64 %99, 7
  store i64 %100, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %101, i32 0, i32 6
  %103 = load ptr, ptr %102, align 8, !tbaa !30
  %104 = load i64, ptr %5, align 8, !tbaa !19
  %105 = sub nsw i64 %104, 1
  %106 = getelementptr inbounds %"struct.langcc::Result_T", ptr %103, i64 %105
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %106, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %107, i32 0, i32 6
  %109 = load ptr, ptr %108, align 8, !tbaa !30
  %110 = load i64, ptr %5, align 8, !tbaa !19
  %111 = sub nsw i64 %110, 2
  %112 = getelementptr inbounds %"struct.langcc::Result_T", ptr %109, i64 %111
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %112, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %113, i32 0, i32 6
  %115 = load ptr, ptr %114, align 8, !tbaa !30
  %116 = load i64, ptr %5, align 8, !tbaa !19
  %117 = sub nsw i64 %116, 3
  %118 = getelementptr inbounds %"struct.langcc::Result_T", ptr %115, i64 %117
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %118, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %119, i32 0, i32 6
  %121 = load ptr, ptr %120, align 8, !tbaa !30
  %122 = load i64, ptr %5, align 8, !tbaa !19
  %123 = sub nsw i64 %122, 4
  %124 = getelementptr inbounds %"struct.langcc::Result_T", ptr %121, i64 %123
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %124, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %125, i32 0, i32 6
  %127 = load ptr, ptr %126, align 8, !tbaa !30
  %128 = load i64, ptr %5, align 8, !tbaa !19
  %129 = sub nsw i64 %128, 5
  %130 = getelementptr inbounds %"struct.langcc::Result_T", ptr %127, i64 %129
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %130, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %131, i32 0, i32 6
  %133 = load ptr, ptr %132, align 8, !tbaa !30
  %134 = load i64, ptr %5, align 8, !tbaa !19
  %135 = sub nsw i64 %134, 6
  %136 = getelementptr inbounds %"struct.langcc::Result_T", ptr %133, i64 %135
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %136, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %137, i32 0, i32 6
  %139 = load ptr, ptr %138, align 8, !tbaa !30
  %140 = load i64, ptr %5, align 8, !tbaa !19
  %141 = sub nsw i64 %140, 7
  %142 = getelementptr inbounds %"struct.langcc::Result_T", ptr %139, i64 %141
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %142, i64 16, i1 false), !tbaa.struct !31
  %143 = load i64, ptr %5, align 8, !tbaa !19
  %144 = sub nsw i64 %143, 7
  store i64 %144, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  %145 = getelementptr inbounds %"struct.langcc::Result_T", ptr %20, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !32
  %147 = getelementptr inbounds i8, ptr %146, 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 %23, ptr noundef nonnull align 8 dereferenceable(16) %147)
  invoke void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %148 unwind label %211

148:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  %149 = getelementptr inbounds %"struct.langcc::Result_T", ptr %17, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8, !tbaa !32
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %151, i32 0, i32 12
  %153 = load ptr, ptr %152, align 8, !tbaa !33
  invoke void @_ZN6langcc15rc_from_ptr_extINS_3VecINS_6rc_ptrIN4lang2cc4Node10SwitchCase2_TEEEEEEENS2_IT_EEPvPNS_5ArenaE(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.422") align 8 %26, ptr noundef %150, ptr noundef %153)
          to label %154 unwind label %215

154:                                              ; preds = %148
  invoke void @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %155 unwind label %219

155:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #8
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %156, i32 0, i32 12
  %158 = load ptr, ptr %157, align 8, !tbaa !33
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = invoke noundef ptr @_ZN6langcc15ParserProcState3genEv(ptr noundef nonnull align 8 dereferenceable(192) %159)
          to label %161 unwind label %223

161:                                              ; preds = %155
  %162 = invoke noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8) %160)
          to label %163 unwind label %223

163:                                              ; preds = %161
  %164 = load i64, ptr %8, align 8, !tbaa !19
  %165 = trunc i64 %164 to i32
  %166 = getelementptr inbounds %"struct.langcc::Result_T", ptr %16, i32 0, i32 1
  %167 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %166, i32 0, i32 1
  %168 = load i32, ptr %167, align 4, !tbaa !34
  invoke void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %28, i32 noundef %165, i32 noundef %168)
          to label %169 unwind label %223

169:                                              ; preds = %163
  invoke void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16) %29)
          to label %170 unwind label %223

170:                                              ; preds = %169
  invoke void @_ZN6langcc15ParserLookaheadC2Ev(ptr noundef nonnull align 2 dereferenceable(16) %30)
          to label %171 unwind label %223

171:                                              ; preds = %170
  invoke void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %172 unwind label %223

172:                                              ; preds = %171
  invoke void @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEEC2ERKS9_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %173 unwind label %227

173:                                              ; preds = %172
  %174 = load i64, ptr %28, align 4
  invoke void @_ZN4lang2cc4Node4Stmt6Switch8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS1_4Expr2_TEEENSA_INS4_3VecINSA_INS1_10SwitchCase2_TEEEEEEE(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.250") align 8 %27, ptr noundef %158, i64 noundef %162, i64 %174, i1 noundef zeroext false, i64 noundef -1, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8 %29, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8 %30, ptr noundef %31, ptr noundef %32)
          to label %175 unwind label %231

175:                                              ; preds = %173
  call void @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #8
  invoke void @_ZNK6langcc6rc_ptrIN4lang2cc4Node4Stmt6Switch2_TEE6increfEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %176 unwind label %236

176:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  %177 = invoke noundef ptr @_ZNK6langcc6rc_ptrIN4lang2cc4Node4Stmt6Switch2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
          to label %178 unwind label %240

178:                                              ; preds = %176
  %179 = load i64, ptr %8, align 8, !tbaa !19
  %180 = trunc i64 %179 to i32
  %181 = getelementptr inbounds %"struct.langcc::Result_T", ptr %16, i32 0, i32 1
  %182 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %181, i32 0, i32 1
  %183 = load i32, ptr %182, align 4, !tbaa !34
  invoke void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %34, i32 noundef %180, i32 noundef %183)
          to label %184 unwind label %240

184:                                              ; preds = %178
  %185 = load i64, ptr %34, align 4
  invoke void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef %177, i64 %185)
          to label %186 unwind label %240

186:                                              ; preds = %184
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %187, i32 0, i32 6
  %189 = load ptr, ptr %188, align 8, !tbaa !30
  %190 = load i64, ptr %5, align 8, !tbaa !19
  %191 = getelementptr inbounds %"struct.langcc::Result_T", ptr %189, i64 %190
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %191, ptr align 8 %33, i64 16, i1 false), !tbaa.struct !31
  %192 = load i64, ptr %5, align 8, !tbaa !19
  %193 = add nsw i64 %192, 1
  store i64 %193, ptr %5, align 8, !tbaa !19
  %194 = load i64, ptr %8, align 8, !tbaa !19
  invoke void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 162, i64 noundef %194)
          to label %195 unwind label %240

195:                                              ; preds = %186
  %196 = getelementptr inbounds %"struct.langcc::SymItem", ptr %0, i32 0, i32 2
  %197 = getelementptr inbounds %"struct.langcc::ParserAttrMask", ptr %196, i32 0, i32 0
  %198 = getelementptr inbounds [16 x i8], ptr %197, i64 0, i64 0
  store i8 1, ptr %198, align 8, !tbaa !28
  %199 = load i64, ptr %4, align 8, !tbaa !19
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %200, i32 0, i32 5
  store i64 %199, ptr %201, align 8, !tbaa !9
  %202 = load i64, ptr %5, align 8, !tbaa !19
  %203 = load ptr, ptr %3, align 8, !tbaa !5
  %204 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %203, i32 0, i32 7
  store i64 %202, ptr %204, align 8, !tbaa !20
  %205 = load i64, ptr %6, align 8, !tbaa !19
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %206, i32 0, i32 9
  store i64 %205, ptr %207, align 8, !tbaa !21
  %208 = load i64, ptr %7, align 8, !tbaa !19
  %209 = load ptr, ptr %3, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %209, i32 0, i32 3
  store i64 %208, ptr %210, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt6Switch2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  call void @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #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 88, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 88, 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

211:                                              ; preds = %2
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %24, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %25, align 4
  br label %248

215:                                              ; preds = %148
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %24, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %25, align 4
  br label %247

219:                                              ; preds = %154
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %24, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %25, align 4
  br label %246

223:                                              ; preds = %171, %170, %169, %163, %161, %155
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %24, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %25, align 4
  br label %245

227:                                              ; preds = %172
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %24, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %25, align 4
  br label %235

231:                                              ; preds = %173
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %24, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %25, align 4
  call void @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #8
  br label %235

235:                                              ; preds = %231, %227
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #8
  br label %245

236:                                              ; preds = %175
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %24, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %25, align 4
  br label %244

240:                                              ; preds = %186, %184, %178, %176
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %24, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  br label %244

244:                                              ; preds = %240, %236
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt6Switch2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #8
  br label %245

245:                                              ; preds = %244, %235, %223
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  br label %246

246:                                              ; preds = %245, %219
  call void @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #8
  br label %247

247:                                              ; preds = %246, %215
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  br label %248

248:                                              ; preds = %247, %211
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #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 88, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 88, 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 %249

249:                                              ; preds = %248
  %250 = load ptr, ptr %24, align 8
  %251 = load i32, ptr %25, align 4
  %252 = insertvalue { ptr, i32 } poison, ptr %250, 0
  %253 = insertvalue { ptr, i32 } %252, i32 %251, 1
  resume { ptr, i32 } %253
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc15rc_from_ptr_extINS_3VecINS_6rc_ptrIN4lang2cc4Node10SwitchCase2_TEEEEEEENS2_IT_EEPvPNS_5ArenaE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.422") align 8, ptr noundef, ptr noundef) #4

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress noinline uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 48}
!10 = !{!"_ZTSN6langcc15ParserProcStateE", !11, i64 0, !6, i64 16, !6, i64 24, !12, i64 32, !6, i64 40, !12, i64 48, !6, i64 56, !12, i64 64, !6, i64 72, !12, i64 80, !13, i64 88, !6, i64 176, !6, i64 184}
!11 = !{!"_ZTSN6langcc6rc_ptrINS_9LexOutputEEE", !6, i64 0, !6, i64 8}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSN6langcc7SymItemE", !12, i64 0, !12, i64 8, !14, i64 16, !12, i64 32, !12, i64 40, !12, i64 48, !15, i64 56, !18, i64 72}
!14 = !{!"_ZTSN6langcc14ParserAttrMaskE", !7, i64 0}
!15 = !{!"_ZTSN6langcc8Result_TE", !6, i64 0, !16, i64 8}
!16 = !{!"_ZTSN6langcc11TokenBoundsE", !17, i64 0, !17, i64 4}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN6langcc15ParserLookaheadE", !7, i64 0}
!19 = !{!12, !12, i64 0}
!20 = !{!10, !12, i64 64}
!21 = !{!10, !12, i64 80}
!22 = !{!10, !12, i64 32}
!23 = !{!10, !6, i64 24}
!24 = !{!25, !12, i64 8}
!25 = !{!"_ZTSN6langcc21ParserVertexStackItemE", !12, i64 0, !12, i64 8}
!26 = !{!10, !6, i64 40}
!27 = !{i64 0, i64 8, !19, i64 8, i64 8, !19, i64 16, i64 16, !28, i64 32, i64 8, !19, i64 40, i64 8, !19, i64 48, i64 8, !19, i64 56, i64 8, !5, i64 64, i64 4, !29, i64 68, i64 4, !29, i64 72, i64 16, !28}
!28 = !{!7, !7, i64 0}
!29 = !{!17, !17, i64 0}
!30 = !{!10, !6, i64 56}
!31 = !{i64 0, i64 8, !5, i64 8, i64 4, !29, i64 12, i64 4, !29}
!32 = !{!15, !6, i64 0}
!33 = !{!10, !6, i64 184}
!34 = !{!15, !17, i64 12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.langcc::rc_ptr.45" = type { ptr, ptr }
%"struct.langcc::rc_ptr.250" = 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::rc_ptr.422" = type { ptr, ptr }
%"struct.langcc::ParserVertexStackItem" = type { i64, i64 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc14ParserAttrMaskC2Ev(ptr noundef nonnull align 1 dereferenceable(16)) unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang2cc4Node4Stmt6Switch8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS1_4Expr2_TEEENSA_INS4_3VecINSA_INS1_10SwitchCase2_TEEEEEEE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.250") 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 void @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEEC2ERKS9_(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_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 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 #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_35_4_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.422", align 8
  %5 = alloca %"struct.langcc::rc_ptr.250", 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.422", align 8
  %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 -120
  %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
  %.sroa.4.0..sroa_idx = getelementptr i8, ptr %28, i64 -4
  %.sroa.4.0.copyload = load i32, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !25
  %29 = getelementptr i8, ptr %28, i64 -32
  %.sroa.01.0.copyload = load ptr, ptr %29, align 8, !tbaa !26
  %30 = getelementptr i8, ptr %28, i64 -80
  %.sroa.0.0.copyload = load ptr, ptr %30, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  %31 = 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) %31)
  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
  %32 = getelementptr inbounds i8, ptr %1, i64 184
  %33 = load ptr, ptr %32, align 8, !tbaa !27
  invoke void @_ZN6langcc15rc_from_ptr_extINS_3VecINS_6rc_ptrIN4lang2cc4Node10SwitchCase2_TEEEEEEENS2_IT_EEPvPNS_5ArenaE(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.422") align 8 %4, ptr noundef %.sroa.01.0.copyload, ptr noundef %33)
          to label %34 unwind label %51

34:                                               ; preds = %2
  call void @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEE6decrefEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  %35 = load ptr, ptr %32, align 8, !tbaa !27
  %36 = call noundef ptr @_ZN6langcc15ParserProcState3genEv(ptr noundef nonnull align 8 dereferenceable(192) %1)
  %37 = call noundef i64 @_ZN6langcc6Gensym3genEv(ptr noundef nonnull align 8 dereferenceable(8) %36)
  %38 = trunc i64 %25 to i32
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef %38, i32 noundef %.sroa.4.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_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEEC2ERKS9_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %39 = load i64, ptr %6, align 8
  invoke void @_ZN4lang2cc4Node4Stmt6Switch8make_extEPN6langcc5ArenaElNS4_11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS1_4Expr2_TEEENSA_INS4_3VecINSA_INS1_10SwitchCase2_TEEEEEEE(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.250") align 8 %5, ptr noundef %35, i64 noundef %37, i64 %39, 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 %40 unwind label %53

40:                                               ; preds = %34
  call void @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEED2Ev(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_ptrIN4lang2cc4Node4Stmt6Switch2_TEE6increfEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  %41 = call noundef ptr @_ZNK6langcc6rc_ptrIN4lang2cc4Node4Stmt6Switch2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %38, i32 noundef %.sroa.4.0.copyload)
  %42 = load i64, ptr %12, align 8
  call void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %41, i64 %42)
  %43 = load ptr, ptr %26, align 8, !tbaa !24
  %44 = getelementptr %"struct.langcc::Result_T", ptr %43, i64 %16
  %45 = getelementptr i8, ptr %44, i64 -112
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %45, 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 %25)
          to label %46 unwind label %55

46:                                               ; preds = %40
  %47 = add nsw i64 %16, -6
  %48 = add nsw i64 %14, -7
  %49 = add nsw i64 %20, -7
  %50 = getelementptr inbounds i8, ptr %0, i64 16
  store i8 1, ptr %50, align 8, !tbaa !29
  store i64 %48, ptr %13, align 8, !tbaa !5
  store i64 %47, ptr %15, align 8, !tbaa !18
  store i64 %18, ptr %17, align 8, !tbaa !19
  store i64 %49, ptr %19, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt6Switch2_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_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEED2Ev(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

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

53:                                               ; preds = %34
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEED2Ev(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 %57

55:                                               ; preds = %40
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Stmt6Switch2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  br label %57

57:                                               ; preds = %55, %53
  %.pn = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  call void @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node10SwitchCase2_TEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  br label %58

58:                                               ; preds = %57, %51
  %.pn.pn = phi { ptr, i32 } [ %.pn, %57 ], [ %52, %51 ]
  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: mustprogress uwtable
declare dso_local void @_ZN6langcc15rc_from_ptr_extINS_3VecINS_6rc_ptrIN4lang2cc4Node10SwitchCase2_TEEEEEEENS2_IT_EEPvPNS_5ArenaE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.422") align 8, ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK6langcc6rc_ptrIN4lang2cc4Node4Stmt6Switch2_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_ptrIN4lang2cc4Node4Stmt6Switch2_TEE3getEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress noinline uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 48}
!6 = !{!"_ZTSN6langcc15ParserProcStateE", !7, i64 0, !8, i64 16, !8, i64 24, !11, i64 32, !8, i64 40, !11, i64 48, !8, i64 56, !11, i64 64, !8, i64 72, !11, i64 80, !12, i64 88, !8, i64 176, !8, i64 184}
!7 = !{!"_ZTSN6langcc6rc_ptrINS_9LexOutputEEE", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"_ZTSN6langcc7SymItemE", !11, i64 0, !11, i64 8, !13, i64 16, !11, i64 32, !11, i64 40, !11, i64 48, !14, i64 56, !17, i64 72}
!13 = !{!"_ZTSN6langcc14ParserAttrMaskE", !9, i64 0}
!14 = !{!"_ZTSN6langcc8Result_TE", !8, i64 0, !15, i64 8}
!15 = !{!"_ZTSN6langcc11TokenBoundsE", !16, i64 0, !16, i64 4}
!16 = !{!"int", !9, i64 0}
!17 = !{!"_ZTSN6langcc15ParserLookaheadE", !9, i64 0}
!18 = !{!6, !11, i64 64}
!19 = !{!6, !11, i64 80}
!20 = !{!6, !11, i64 32}
!21 = !{!6, !8, i64 24}
!22 = !{!23, !11, i64 8}
!23 = !{!"_ZTSN6langcc21ParserVertexStackItemE", !11, i64 0, !11, i64 8}
!24 = !{!6, !8, i64 56}
!25 = !{!16, !16, i64 0}
!26 = !{!8, !8, i64 0}
!27 = !{!6, !8, i64 184}
!28 = !{i64 0, i64 8, !26, i64 8, i64 4, !25, i64 12, i64 4, !25}
!29 = !{!9, !9, i64 0}


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