; LLVM IR from jzimmerman/langcc :: gen/cc/gen.ll (ZN4lang2cc6parser18_parse_proc_5_18_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::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 uwtable
declare dso_local void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef, i64 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN4lang2cc6parser18_parse_proc_5_18_0EPN6langcc15ParserProcStateE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::SymItem") align 8 %0, ptr noundef %1) #3 {
  %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
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %23, i32 0, i32 5
  %25 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %25, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %26, i32 0, i32 7
  %28 = load i64, ptr %27, align 8, !tbaa !20
  store i64 %28, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %29, i32 0, i32 9
  %31 = load i64, ptr %30, align 8, !tbaa !21
  store i64 %31, ptr %6, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %32, i32 0, i32 3
  %34 = load i64, ptr %33, align 8, !tbaa !22
  store i64 %34, ptr %7, align 8, !tbaa !19
  %35 = load i64, ptr %7, align 8, !tbaa !19
  %36 = sub nsw i64 %35, 7
  store i64 %36, ptr %7, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !23
  %40 = load i64, ptr %7, align 8, !tbaa !19
  %41 = sub nsw i64 %40, 1
  %42 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %39, i64 %41
  %43 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %42, i32 0, i32 1
  %44 = load i64, ptr %43, align 8, !tbaa !24
  store i64 %44, ptr %8, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 88, ptr %9) #4
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %45, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !26
  %48 = load i64, ptr %4, align 8, !tbaa !19
  %49 = sub nsw i64 %48, 1
  %50 = getelementptr inbounds %"struct.langcc::SymItem", ptr %47, i64 %49
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %50, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %10) #4
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %51, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !26
  %54 = load i64, ptr %4, align 8, !tbaa !19
  %55 = sub nsw i64 %54, 2
  %56 = getelementptr inbounds %"struct.langcc::SymItem", ptr %53, i64 %55
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %56, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %11) #4
  %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, 3
  %62 = getelementptr inbounds %"struct.langcc::SymItem", ptr %59, i64 %61
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %62, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %12) #4
  %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, 4
  %68 = getelementptr inbounds %"struct.langcc::SymItem", ptr %65, i64 %67
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %68, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %13) #4
  %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, 5
  %74 = getelementptr inbounds %"struct.langcc::SymItem", ptr %71, i64 %73
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %74, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %14) #4
  %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, 6
  %80 = getelementptr inbounds %"struct.langcc::SymItem", ptr %77, i64 %79
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %80, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %15) #4
  %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, 7
  %86 = getelementptr inbounds %"struct.langcc::SymItem", ptr %83, i64 %85
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %86, i64 88, i1 false), !tbaa.struct !27
  %87 = load i64, ptr %4, align 8, !tbaa !19
  %88 = sub nsw i64 %87, 7
  store i64 %88, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %89, i32 0, i32 6
  %91 = load ptr, ptr %90, align 8, !tbaa !30
  %92 = load i64, ptr %5, align 8, !tbaa !19
  %93 = sub nsw i64 %92, 1
  %94 = getelementptr inbounds %"struct.langcc::Result_T", ptr %91, i64 %93
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %94, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %95, i32 0, i32 6
  %97 = load ptr, ptr %96, align 8, !tbaa !30
  %98 = load i64, ptr %5, align 8, !tbaa !19
  %99 = sub nsw i64 %98, 2
  %100 = getelementptr inbounds %"struct.langcc::Result_T", ptr %97, i64 %99
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %100, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  %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, 3
  %106 = getelementptr inbounds %"struct.langcc::Result_T", ptr %103, i64 %105
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %106, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  %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, 4
  %112 = getelementptr inbounds %"struct.langcc::Result_T", ptr %109, i64 %111
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %112, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  %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, 5
  %118 = getelementptr inbounds %"struct.langcc::Result_T", ptr %115, i64 %117
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %118, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %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, 6
  %124 = getelementptr inbounds %"struct.langcc::Result_T", ptr %121, i64 %123
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %124, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %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, 7
  %130 = getelementptr inbounds %"struct.langcc::Result_T", ptr %127, i64 %129
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %130, i64 16, i1 false), !tbaa.struct !31
  %131 = load i64, ptr %5, align 8, !tbaa !19
  %132 = sub nsw i64 %131, 7
  store i64 %132, ptr %5, align 8, !tbaa !19
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %133, i32 0, i32 6
  %135 = load ptr, ptr %134, align 8, !tbaa !30
  %136 = load i64, ptr %5, align 8, !tbaa !19
  %137 = getelementptr inbounds %"struct.langcc::Result_T", ptr %135, i64 %136
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %137, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !31
  %138 = load i64, ptr %5, align 8, !tbaa !19
  %139 = add nsw i64 %138, 1
  store i64 %139, ptr %5, align 8, !tbaa !19
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %140, i32 0, i32 8
  %142 = load ptr, ptr %141, align 8, !tbaa !32
  %143 = load i64, ptr %6, align 8, !tbaa !19
  %144 = getelementptr inbounds %"struct.langcc::Result_T", ptr %142, i64 %143
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %144, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !31
  %145 = load i64, ptr %6, align 8, !tbaa !19
  %146 = add nsw i64 %145, 1
  store i64 %146, ptr %6, align 8, !tbaa !19
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %147, i32 0, i32 8
  %149 = load ptr, ptr %148, align 8, !tbaa !32
  %150 = load i64, ptr %6, align 8, !tbaa !19
  %151 = getelementptr inbounds %"struct.langcc::Result_T", ptr %149, i64 %150
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %151, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !31
  %152 = load i64, ptr %6, align 8, !tbaa !19
  %153 = add nsw i64 %152, 1
  store i64 %153, ptr %6, align 8, !tbaa !19
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %154, i32 0, i32 8
  %156 = load ptr, ptr %155, align 8, !tbaa !32
  %157 = load i64, ptr %6, align 8, !tbaa !19
  %158 = getelementptr inbounds %"struct.langcc::Result_T", ptr %156, i64 %157
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %158, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !31
  %159 = load i64, ptr %6, align 8, !tbaa !19
  %160 = add nsw i64 %159, 1
  store i64 %160, ptr %6, align 8, !tbaa !19
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %161, i32 0, i32 8
  %163 = load ptr, ptr %162, align 8, !tbaa !32
  %164 = load i64, ptr %6, align 8, !tbaa !19
  %165 = getelementptr inbounds %"struct.langcc::Result_T", ptr %163, i64 %164
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %165, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !31
  %166 = load i64, ptr %6, align 8, !tbaa !19
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %6, align 8, !tbaa !19
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %168, i32 0, i32 8
  %170 = load ptr, ptr %169, align 8, !tbaa !32
  %171 = load i64, ptr %6, align 8, !tbaa !19
  %172 = getelementptr inbounds %"struct.langcc::Result_T", ptr %170, i64 %171
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %172, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !31
  %173 = load i64, ptr %6, align 8, !tbaa !19
  %174 = add nsw i64 %173, 1
  store i64 %174, ptr %6, align 8, !tbaa !19
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %175, i32 0, i32 8
  %177 = load ptr, ptr %176, align 8, !tbaa !32
  %178 = load i64, ptr %6, align 8, !tbaa !19
  %179 = getelementptr inbounds %"struct.langcc::Result_T", ptr %177, i64 %178
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %179, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !31
  %180 = load i64, ptr %6, align 8, !tbaa !19
  %181 = add nsw i64 %180, 1
  store i64 %181, ptr %6, align 8, !tbaa !19
  %182 = load i64, ptr %8, align 8, !tbaa !19
  call void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 155, i64 noundef %182)
  %183 = load i64, ptr %4, align 8, !tbaa !19
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %184, i32 0, i32 5
  store i64 %183, ptr %185, align 8, !tbaa !9
  %186 = load i64, ptr %5, align 8, !tbaa !19
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %187, i32 0, i32 7
  store i64 %186, ptr %188, align 8, !tbaa !20
  %189 = load i64, ptr %6, align 8, !tbaa !19
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %190, i32 0, i32 9
  store i64 %189, ptr %191, align 8, !tbaa !21
  %192 = load i64, ptr %7, align 8, !tbaa !19
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %193, i32 0, i32 3
  store i64 %192, ptr %194, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 88, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 88, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 88, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 88, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 88, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  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 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 = { 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 #4 = { 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 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 uwtable
declare dso_local void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88), i64 noundef, i64 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN4lang2cc6parser18_parse_proc_5_18_0EPN6langcc15ParserProcStateE(ptr dead_on_unwind noalias nonnull writable sret(%"struct.langcc::SymItem") align 8 %0, ptr nocapture noundef %1) local_unnamed_addr #3 {
  %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 = getelementptr inbounds i8, ptr %1, i64 48
  %9 = load i64, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %1, i64 64
  %11 = load i64, ptr %10, align 8, !tbaa !18
  %12 = getelementptr inbounds i8, ptr %1, i64 80
  %13 = load i64, ptr %12, align 8, !tbaa !19
  %14 = getelementptr inbounds i8, ptr %1, i64 32
  %15 = load i64, ptr %14, align 8, !tbaa !20
  %16 = add nsw i64 %15, -7
  %17 = getelementptr inbounds i8, ptr %1, i64 24
  %18 = load ptr, ptr %17, align 8, !tbaa !21
  %19 = getelementptr %"struct.langcc::ParserVertexStackItem", ptr %18, i64 %15
  %20 = getelementptr i8, ptr %19, i64 -120
  %21 = load i64, ptr %20, align 8, !tbaa !22
  %22 = add nsw i64 %9, -7
  %23 = getelementptr inbounds i8, ptr %1, i64 56
  %24 = load ptr, ptr %23, align 8, !tbaa !24
  %25 = getelementptr %"struct.langcc::Result_T", ptr %24, i64 %11
  %26 = getelementptr i8, ptr %25, i64 -16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3)
  %27 = getelementptr i8, ptr %25, i64 -32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %27, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4)
  %28 = getelementptr i8, ptr %25, i64 -48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %28, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5)
  %29 = getelementptr i8, ptr %25, i64 -64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %29, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6)
  %30 = getelementptr i8, ptr %25, i64 -80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, 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 %7)
  %31 = getelementptr i8, ptr %25, i64 -96
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %31, i64 16, i1 false), !tbaa.struct !25
  %32 = add nsw i64 %11, -6
  %33 = getelementptr inbounds i8, ptr %1, i64 72
  %34 = load ptr, ptr %33, align 8, !tbaa !28
  %35 = getelementptr inbounds %"struct.langcc::Result_T", ptr %34, i64 %13
  tail call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %26, i64 16, i1 false)
  %36 = load ptr, ptr %33, align 8, !tbaa !28
  %37 = getelementptr %"struct.langcc::Result_T", ptr %36, i64 %13
  %38 = getelementptr i8, ptr %37, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %3, i64 16, i1 false), !tbaa.struct !25
  %39 = load ptr, ptr %33, align 8, !tbaa !28
  %40 = getelementptr %"struct.langcc::Result_T", ptr %39, i64 %13
  %41 = getelementptr i8, ptr %40, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(16) %4, i64 16, i1 false), !tbaa.struct !25
  %42 = load ptr, ptr %33, align 8, !tbaa !28
  %43 = getelementptr %"struct.langcc::Result_T", ptr %42, i64 %13
  %44 = getelementptr i8, ptr %43, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 8 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !25
  %45 = load ptr, ptr %33, align 8, !tbaa !28
  %46 = getelementptr %"struct.langcc::Result_T", ptr %45, i64 %13
  %47 = getelementptr i8, ptr %46, i64 64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 8 dereferenceable(16) %6, i64 16, i1 false), !tbaa.struct !25
  %48 = load ptr, ptr %33, align 8, !tbaa !28
  %49 = getelementptr %"struct.langcc::Result_T", ptr %48, i64 %13
  %50 = getelementptr i8, ptr %49, i64 80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull align 8 dereferenceable(16) %7, i64 16, i1 false), !tbaa.struct !25
  %51 = add nsw i64 %13, 6
  tail call void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 155, i64 noundef %21)
  store i64 %22, ptr %8, align 8, !tbaa !5
  store i64 %32, ptr %10, align 8, !tbaa !18
  store i64 %51, ptr %12, align 8, !tbaa !19
  store i64 %16, ptr %14, align 8, !tbaa !20
  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
}

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

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 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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }

!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 72}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass