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

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


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