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

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

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #2 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 #2 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 #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN6langcc15make_rc_inc_extIbJbEEEPT_PNS_5ArenaEDpT0_(ptr noundef, i1 noundef zeroext) #4

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN4lang2cc6parser18_parse_proc_20_1_5EPN6langcc15ParserProcStateE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::SymItem") align 8 %0, ptr noundef %1) #5 {
  %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 ptr, align 8
  %24 = alloca %"struct.langcc::Result_T", align 8
  %25 = 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) #6
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %26, i32 0, i32 5
  %28 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %28, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %29, i32 0, i32 7
  %31 = load i64, ptr %30, align 8, !tbaa !20
  store i64 %31, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %32, i32 0, i32 9
  %34 = load i64, ptr %33, align 8, !tbaa !21
  store i64 %34, ptr %6, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %35, i32 0, i32 3
  %37 = load i64, ptr %36, align 8, !tbaa !22
  store i64 %37, ptr %7, align 8, !tbaa !19
  %38 = load i64, ptr %7, align 8, !tbaa !19
  %39 = sub nsw i64 %38, 7
  store i64 %39, ptr %7, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %40, i32 0, i32 2
  %42 = load ptr, ptr %41, align 8, !tbaa !23
  %43 = load i64, ptr %7, align 8, !tbaa !19
  %44 = sub nsw i64 %43, 1
  %45 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %42, i64 %44
  %46 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %45, i32 0, i32 1
  %47 = load i64, ptr %46, align 8, !tbaa !24
  store i64 %47, ptr %8, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 88, ptr %9) #6
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %48, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !26
  %51 = load i64, ptr %4, align 8, !tbaa !19
  %52 = sub nsw i64 %51, 1
  %53 = getelementptr inbounds %"struct.langcc::SymItem", ptr %50, i64 %52
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %53, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %10) #6
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %54, i32 0, i32 4
  %56 = load ptr, ptr %55, align 8, !tbaa !26
  %57 = load i64, ptr %4, align 8, !tbaa !19
  %58 = sub nsw i64 %57, 2
  %59 = getelementptr inbounds %"struct.langcc::SymItem", ptr %56, i64 %58
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %59, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %11) #6
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !26
  %63 = load i64, ptr %4, align 8, !tbaa !19
  %64 = sub nsw i64 %63, 3
  %65 = getelementptr inbounds %"struct.langcc::SymItem", ptr %62, i64 %64
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %65, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %12) #6
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %66, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !26
  %69 = load i64, ptr %4, align 8, !tbaa !19
  %70 = sub nsw i64 %69, 4
  %71 = getelementptr inbounds %"struct.langcc::SymItem", ptr %68, i64 %70
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %71, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %13) #6
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %72, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !26
  %75 = load i64, ptr %4, align 8, !tbaa !19
  %76 = sub nsw i64 %75, 5
  %77 = getelementptr inbounds %"struct.langcc::SymItem", ptr %74, i64 %76
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %77, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %14) #6
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !26
  %81 = load i64, ptr %4, align 8, !tbaa !19
  %82 = sub nsw i64 %81, 6
  %83 = getelementptr inbounds %"struct.langcc::SymItem", ptr %80, i64 %82
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %83, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %15) #6
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !26
  %87 = load i64, ptr %4, align 8, !tbaa !19
  %88 = sub nsw i64 %87, 7
  %89 = getelementptr inbounds %"struct.langcc::SymItem", ptr %86, i64 %88
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %89, i64 88, i1 false), !tbaa.struct !27
  %90 = load i64, ptr %4, align 8, !tbaa !19
  %91 = sub nsw i64 %90, 7
  store i64 %91, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %92, i32 0, i32 6
  %94 = load ptr, ptr %93, align 8, !tbaa !30
  %95 = load i64, ptr %5, align 8, !tbaa !19
  %96 = sub nsw i64 %95, 1
  %97 = getelementptr inbounds %"struct.langcc::Result_T", ptr %94, i64 %96
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %97, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %98, i32 0, i32 6
  %100 = load ptr, ptr %99, align 8, !tbaa !30
  %101 = load i64, ptr %5, align 8, !tbaa !19
  %102 = sub nsw i64 %101, 2
  %103 = getelementptr inbounds %"struct.langcc::Result_T", ptr %100, i64 %102
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %103, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %104, i32 0, i32 6
  %106 = load ptr, ptr %105, align 8, !tbaa !30
  %107 = load i64, ptr %5, align 8, !tbaa !19
  %108 = sub nsw i64 %107, 3
  %109 = getelementptr inbounds %"struct.langcc::Result_T", ptr %106, i64 %108
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %109, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %110, i32 0, i32 6
  %112 = load ptr, ptr %111, align 8, !tbaa !30
  %113 = load i64, ptr %5, align 8, !tbaa !19
  %114 = sub nsw i64 %113, 4
  %115 = getelementptr inbounds %"struct.langcc::Result_T", ptr %112, i64 %114
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %115, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %116, i32 0, i32 6
  %118 = load ptr, ptr %117, align 8, !tbaa !30
  %119 = load i64, ptr %5, align 8, !tbaa !19
  %120 = sub nsw i64 %119, 5
  %121 = getelementptr inbounds %"struct.langcc::Result_T", ptr %118, i64 %120
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %121, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %122, i32 0, i32 6
  %124 = load ptr, ptr %123, align 8, !tbaa !30
  %125 = load i64, ptr %5, align 8, !tbaa !19
  %126 = sub nsw i64 %125, 6
  %127 = getelementptr inbounds %"struct.langcc::Result_T", ptr %124, i64 %126
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %127, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %128, i32 0, i32 6
  %130 = load ptr, ptr %129, align 8, !tbaa !30
  %131 = load i64, ptr %5, align 8, !tbaa !19
  %132 = sub nsw i64 %131, 7
  %133 = getelementptr inbounds %"struct.langcc::Result_T", ptr %130, i64 %132
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %133, i64 16, i1 false), !tbaa.struct !31
  %134 = load i64, ptr %5, align 8, !tbaa !19
  %135 = sub nsw i64 %134, 7
  store i64 %135, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %136, i32 0, i32 12
  %138 = load ptr, ptr %137, align 8, !tbaa !32
  %139 = call noundef ptr @_ZN6langcc15make_rc_inc_extIbJbEEEPT_PNS_5ArenaEDpT0_(ptr noundef %138, i1 noundef zeroext false)
  store ptr %139, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  %140 = load ptr, ptr %23, align 8, !tbaa !5
  %141 = load i64, ptr %8, align 8, !tbaa !19
  %142 = trunc i64 %141 to i32
  %143 = load i64, ptr %8, align 8, !tbaa !19
  %144 = trunc i64 %143 to i32
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %25, i32 noundef %142, i32 noundef %144)
  %145 = load i64, ptr %25, align 4
  call void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef %140, i64 %145)
  %146 = load ptr, ptr %3, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %146, i32 0, i32 6
  %148 = load ptr, ptr %147, align 8, !tbaa !30
  %149 = load i64, ptr %5, align 8, !tbaa !19
  %150 = getelementptr inbounds %"struct.langcc::Result_T", ptr %148, i64 %149
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %150, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !31
  %151 = load i64, ptr %5, align 8, !tbaa !19
  %152 = add nsw i64 %151, 1
  store i64 %152, ptr %5, align 8, !tbaa !19
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %153, i32 0, i32 8
  %155 = load ptr, ptr %154, align 8, !tbaa !33
  %156 = load i64, ptr %6, align 8, !tbaa !19
  %157 = getelementptr inbounds %"struct.langcc::Result_T", ptr %155, i64 %156
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %157, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !31
  %158 = load i64, ptr %6, align 8, !tbaa !19
  %159 = add nsw i64 %158, 1
  store i64 %159, ptr %6, align 8, !tbaa !19
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %160, i32 0, i32 8
  %162 = load ptr, ptr %161, align 8, !tbaa !33
  %163 = load i64, ptr %6, align 8, !tbaa !19
  %164 = getelementptr inbounds %"struct.langcc::Result_T", ptr %162, i64 %163
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %164, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !31
  %165 = load i64, ptr %6, align 8, !tbaa !19
  %166 = add nsw i64 %165, 1
  store i64 %166, ptr %6, align 8, !tbaa !19
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  %168 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %167, i32 0, i32 8
  %169 = load ptr, ptr %168, align 8, !tbaa !33
  %170 = load i64, ptr %6, align 8, !tbaa !19
  %171 = getelementptr inbounds %"struct.langcc::Result_T", ptr %169, i64 %170
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %171, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !31
  %172 = load i64, ptr %6, align 8, !tbaa !19
  %173 = add nsw i64 %172, 1
  store i64 %173, ptr %6, align 8, !tbaa !19
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %174, i32 0, i32 8
  %176 = load ptr, ptr %175, align 8, !tbaa !33
  %177 = load i64, ptr %6, align 8, !tbaa !19
  %178 = getelementptr inbounds %"struct.langcc::Result_T", ptr %176, i64 %177
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %178, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !31
  %179 = load i64, ptr %6, align 8, !tbaa !19
  %180 = add nsw i64 %179, 1
  store i64 %180, ptr %6, align 8, !tbaa !19
  %181 = load ptr, ptr %3, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %181, i32 0, i32 8
  %183 = load ptr, ptr %182, align 8, !tbaa !33
  %184 = load i64, ptr %6, align 8, !tbaa !19
  %185 = getelementptr inbounds %"struct.langcc::Result_T", ptr %183, i64 %184
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %185, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !31
  %186 = load i64, ptr %6, align 8, !tbaa !19
  %187 = add nsw i64 %186, 1
  store i64 %187, ptr %6, align 8, !tbaa !19
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %188, i32 0, i32 8
  %190 = load ptr, ptr %189, align 8, !tbaa !33
  %191 = load i64, ptr %6, align 8, !tbaa !19
  %192 = getelementptr inbounds %"struct.langcc::Result_T", ptr %190, i64 %191
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %192, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !31
  %193 = load i64, ptr %6, align 8, !tbaa !19
  %194 = add nsw i64 %193, 1
  store i64 %194, ptr %6, align 8, !tbaa !19
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %195, i32 0, i32 8
  %197 = load ptr, ptr %196, align 8, !tbaa !33
  %198 = load i64, ptr %6, align 8, !tbaa !19
  %199 = getelementptr inbounds %"struct.langcc::Result_T", ptr %197, i64 %198
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %199, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !31
  %200 = load i64, ptr %6, align 8, !tbaa !19
  %201 = add nsw i64 %200, 1
  store i64 %201, ptr %6, align 8, !tbaa !19
  %202 = load i64, ptr %8, align 8, !tbaa !19
  call void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 151, i64 noundef %202)
  %203 = load i64, ptr %4, align 8, !tbaa !19
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %204, i32 0, i32 5
  store i64 %203, ptr %205, align 8, !tbaa !9
  %206 = load i64, ptr %5, align 8, !tbaa !19
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %207, i32 0, i32 7
  store i64 %206, ptr %208, align 8, !tbaa !20
  %209 = load i64, ptr %6, align 8, !tbaa !19
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %210, i32 0, i32 9
  store i64 %209, ptr %211, align 8, !tbaa !21
  %212 = load i64, ptr %7, align 8, !tbaa !19
  %213 = load ptr, ptr %3, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %213, i32 0, i32 3
  store i64 %212, ptr %214, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 #6 = { 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 = !{!10, !6, i64 184}
!33 = !{!10, !6, i64 72}


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

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) unnamed_addr #2 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 #2 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 #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN6langcc15make_rc_inc_extIbJbEEEPT_PNS_5ArenaEDpT0_(ptr noundef, i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN4lang2cc6parser18_parse_proc_20_1_5EPN6langcc15ParserProcStateE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::SymItem") align 8 %0, ptr nocapture noundef %1) local_unnamed_addr #5 {
  %3 = alloca %"struct.langcc::Result_T", align 8
  %4 = alloca %"struct.langcc::Result_T", align 8
  %5 = alloca %"struct.langcc::Result_T", align 8
  %6 = alloca %"struct.langcc::Result_T", align 8
  %7 = alloca %"struct.langcc::Result_T", align 8
  %8 = alloca %"struct.langcc::Result_T", align 8
  %9 = alloca %"struct.langcc::Result_T", align 8
  %10 = alloca %"struct.langcc::Result_T", align 8
  %11 = alloca %"struct.langcc::TokenBounds", align 8
  %12 = getelementptr inbounds i8, ptr %1, i64 48
  %13 = load i64, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %1, i64 64
  %15 = load i64, ptr %14, align 8, !tbaa !18
  %16 = getelementptr inbounds i8, ptr %1, i64 80
  %17 = load i64, ptr %16, align 8, !tbaa !19
  %18 = getelementptr inbounds i8, ptr %1, i64 32
  %19 = load i64, ptr %18, align 8, !tbaa !20
  %20 = add nsw i64 %19, -7
  %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 %19
  %24 = getelementptr i8, ptr %23, i64 -120
  %25 = load i64, ptr %24, align 8, !tbaa !22
  %26 = add nsw i64 %13, -7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3)
  %27 = getelementptr inbounds i8, ptr %1, i64 56
  %28 = load ptr, ptr %27, align 8, !tbaa !24
  %29 = getelementptr %"struct.langcc::Result_T", ptr %28, i64 %15
  %30 = getelementptr i8, ptr %29, i64 -16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %30, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4)
  %31 = getelementptr i8, ptr %29, i64 -32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %31, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5)
  %32 = getelementptr i8, ptr %29, i64 -48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %32, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6)
  %33 = getelementptr i8, ptr %29, i64 -64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %33, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7)
  %34 = getelementptr i8, ptr %29, i64 -80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %34, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8)
  %35 = getelementptr i8, ptr %29, i64 -96
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %35, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9)
  %36 = add nsw i64 %15, -7
  %37 = getelementptr inbounds %"struct.langcc::Result_T", ptr %28, i64 %36
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %37, i64 16, i1 false), !tbaa.struct !25
  %38 = getelementptr inbounds i8, ptr %1, i64 184
  %39 = load ptr, ptr %38, align 8, !tbaa !28
  %40 = tail call noundef ptr @_ZN6langcc15make_rc_inc_extIbJbEEEPT_PNS_5ArenaEDpT0_(ptr noundef %39, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %41 = trunc i64 %25 to i32
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %11, i32 noundef %41, i32 noundef %41)
  %42 = load i64, ptr %11, align 8
  call void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %40, i64 %42)
  %43 = load ptr, ptr %27, align 8, !tbaa !24
  %44 = getelementptr inbounds %"struct.langcc::Result_T", ptr %43, i64 %36
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 8 dereferenceable(16) %10, i64 16, i1 false), !tbaa.struct !25
  %45 = add nsw i64 %15, -6
  %46 = getelementptr inbounds i8, ptr %1, i64 72
  %47 = load ptr, ptr %46, align 8, !tbaa !29
  %48 = getelementptr inbounds %"struct.langcc::Result_T", ptr %47, i64 %17
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 8 dereferenceable(16) %3, i64 16, i1 false), !tbaa.struct !25
  %49 = load ptr, ptr %46, align 8, !tbaa !29
  %50 = getelementptr %"struct.langcc::Result_T", ptr %49, i64 %17
  %51 = getelementptr i8, ptr %50, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(16) %4, i64 16, i1 false), !tbaa.struct !25
  %52 = load ptr, ptr %46, align 8, !tbaa !29
  %53 = getelementptr %"struct.langcc::Result_T", ptr %52, i64 %17
  %54 = getelementptr i8, ptr %53, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 8 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !25
  %55 = load ptr, ptr %46, align 8, !tbaa !29
  %56 = getelementptr %"struct.langcc::Result_T", ptr %55, i64 %17
  %57 = getelementptr i8, ptr %56, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 8 dereferenceable(16) %6, i64 16, i1 false), !tbaa.struct !25
  %58 = load ptr, ptr %46, align 8, !tbaa !29
  %59 = getelementptr %"struct.langcc::Result_T", ptr %58, i64 %17
  %60 = getelementptr i8, ptr %59, i64 64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef nonnull align 8 dereferenceable(16) %7, i64 16, i1 false), !tbaa.struct !25
  %61 = load ptr, ptr %46, align 8, !tbaa !29
  %62 = getelementptr %"struct.langcc::Result_T", ptr %61, i64 %17
  %63 = getelementptr i8, ptr %62, i64 80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %63, ptr noundef nonnull align 8 dereferenceable(16) %8, i64 16, i1 false), !tbaa.struct !25
  %64 = load ptr, ptr %46, align 8, !tbaa !29
  %65 = getelementptr %"struct.langcc::Result_T", ptr %64, i64 %17
  %66 = getelementptr i8, ptr %65, i64 96
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 8 dereferenceable(16) %9, i64 16, i1 false), !tbaa.struct !25
  %67 = add nsw i64 %17, 7
  call void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 151, i64 noundef %25)
  store i64 %26, ptr %12, align 8, !tbaa !5
  store i64 %45, ptr %14, align 8, !tbaa !18
  store i64 %67, ptr %16, align 8, !tbaa !19
  store i64 %20, ptr %18, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3)
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 #6 = { 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 = !{i64 0, i64 8, !26, i64 8, i64 4, !27, i64 12, i64 4, !27}
!26 = !{!8, !8, i64 0}
!27 = !{!16, !16, i64 0}
!28 = !{!6, !8, i64 184}
!29 = !{!6, !8, i64 72}


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