; LLVM IR from jzimmerman/langcc :: gen/meta/gen.ll (ZN4lang4meta6parser18_parse_proc_10_1_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::Option::_T.305" = type { i32, [32 x i8] }
%"struct.langcc::StrSlice" = type { %"struct.langcc::rc_ptr.161", i64, i64 }
%"struct.langcc::rc_ptr.161" = type { ptr, ptr }
%"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 }

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN4lang4meta6parser18_parse_proc_10_1_0EPN6langcc15ParserProcStateE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::SymItem") align 8 %0, ptr noundef %1) #7 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.langcc::SymItem", align 8
  %10 = alloca %"struct.langcc::SymItem", align 8
  %11 = alloca %"struct.langcc::SymItem", align 8
  %12 = alloca %"struct.langcc::SymItem", align 8
  %13 = alloca %"struct.langcc::SymItem", align 8
  %14 = alloca %"struct.langcc::SymItem", align 8
  %15 = alloca %"struct.langcc::SymItem", align 8
  %16 = alloca %"struct.langcc::Result_T", align 8
  %17 = alloca %"struct.langcc::Result_T", align 8
  %18 = alloca %"struct.langcc::Result_T", align 8
  %19 = alloca %"struct.langcc::Result_T", align 8
  %20 = alloca %"struct.langcc::Result_T", align 8
  %21 = alloca %"struct.langcc::Result_T", align 8
  %22 = alloca %"struct.langcc::Result_T", align 8
  %23 = alloca %"struct.langcc::TokenBounds", align 4
  %24 = alloca %"struct.langcc::Result_T", align 8
  %25 = alloca %"struct.langcc::StrSlice", align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"struct.langcc::Option::_T.305", align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca %"struct.langcc::Result_T", align 8
  %31 = alloca %"struct.langcc::TokenBounds", align 4
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %32, i32 0, i32 5
  %34 = load i64, ptr %33, align 8, !tbaa !9
  store i64 %34, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %35, i32 0, i32 7
  %37 = load i64, ptr %36, align 8, !tbaa !20
  store i64 %37, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %38, i32 0, i32 9
  %40 = load i64, ptr %39, align 8, !tbaa !21
  store i64 %40, ptr %6, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %41, i32 0, i32 3
  %43 = load i64, ptr %42, align 8, !tbaa !22
  store i64 %43, ptr %7, align 8, !tbaa !19
  %44 = load i64, ptr %7, align 8, !tbaa !19
  %45 = sub nsw i64 %44, 7
  store i64 %45, ptr %7, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %46, i32 0, i32 2
  %48 = load ptr, ptr %47, align 8, !tbaa !23
  %49 = load i64, ptr %7, align 8, !tbaa !19
  %50 = sub nsw i64 %49, 1
  %51 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %48, i64 %50
  %52 = getelementptr inbounds %"struct.langcc::ParserVertexStackItem", ptr %51, i32 0, i32 1
  %53 = load i64, ptr %52, align 8, !tbaa !24
  store i64 %53, ptr %8, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 88, ptr %9) #8
  %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, 1
  %59 = getelementptr inbounds %"struct.langcc::SymItem", ptr %56, i64 %58
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %59, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %10) #8
  %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, 2
  %65 = getelementptr inbounds %"struct.langcc::SymItem", ptr %62, i64 %64
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %65, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %11) #8
  %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, 3
  %71 = getelementptr inbounds %"struct.langcc::SymItem", ptr %68, i64 %70
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %71, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %12) #8
  %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, 4
  %77 = getelementptr inbounds %"struct.langcc::SymItem", ptr %74, i64 %76
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %77, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %13) #8
  %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, 5
  %83 = getelementptr inbounds %"struct.langcc::SymItem", ptr %80, i64 %82
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %83, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %14) #8
  %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, 6
  %89 = getelementptr inbounds %"struct.langcc::SymItem", ptr %86, i64 %88
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %89, i64 88, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.start.p0(i64 88, ptr %15) #8
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %90, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !26
  %93 = load i64, ptr %4, align 8, !tbaa !19
  %94 = sub nsw i64 %93, 7
  %95 = getelementptr inbounds %"struct.langcc::SymItem", ptr %92, i64 %94
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %95, i64 88, i1 false), !tbaa.struct !27
  %96 = load i64, ptr %4, align 8, !tbaa !19
  %97 = sub nsw i64 %96, 7
  store i64 %97, ptr %4, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %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, 1
  %103 = getelementptr inbounds %"struct.langcc::Result_T", ptr %100, i64 %102
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %103, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %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, 2
  %109 = getelementptr inbounds %"struct.langcc::Result_T", ptr %106, i64 %108
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %109, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  %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, 3
  %115 = getelementptr inbounds %"struct.langcc::Result_T", ptr %112, i64 %114
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %115, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  %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, 4
  %121 = getelementptr inbounds %"struct.langcc::Result_T", ptr %118, i64 %120
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %121, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %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, 5
  %127 = getelementptr inbounds %"struct.langcc::Result_T", ptr %124, i64 %126
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %127, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %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, 6
  %133 = getelementptr inbounds %"struct.langcc::Result_T", ptr %130, i64 %132
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %133, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %134, i32 0, i32 6
  %136 = load ptr, ptr %135, align 8, !tbaa !30
  %137 = load i64, ptr %5, align 8, !tbaa !19
  %138 = sub nsw i64 %137, 7
  %139 = getelementptr inbounds %"struct.langcc::Result_T", ptr %136, i64 %138
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %139, i64 16, i1 false), !tbaa.struct !31
  %140 = load i64, ptr %5, align 8, !tbaa !19
  %141 = sub nsw i64 %140, 7
  store i64 %141, ptr %5, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !31
  %142 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8
  %144 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %145 = load i64, ptr %144, align 8
  %146 = call i64 @_ZN6langcc26result_decode_token_boundsENS_8Result_TE(ptr %143, i64 %145)
  store i64 %146, ptr %23, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #8
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %23, i32 0, i32 0
  %149 = load i32, ptr %148, align 4, !tbaa !32
  %150 = sext i32 %149 to i64
  call void @_ZN6langcc15ParserProcState11fetch_tokenEl(ptr dead_on_unwind writable sret(%"struct.langcc::StrSlice") align 8 %25, ptr noundef nonnull align 8 dereferenceable(192) %147, i64 noundef %150)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %151, i32 0, i32 12
  %153 = load ptr, ptr %152, align 8, !tbaa !33
  invoke void @_ZN6langcc4SomeINS_8StrSliceEEENS_6Option2_TIT_EERKS4_(ptr dead_on_unwind writable sret(%"struct.langcc::Option::_T.305") align 4 %27, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %154 unwind label %229

154:                                              ; preds = %2
  %155 = invoke noundef ptr @_ZN6langcc15make_rc_inc_extINS_6Option2_TINS_8StrSliceEEEJS4_EEEPT_PNS_5ArenaEDpT0_(ptr noundef %153, ptr noundef %27)
          to label %156 unwind label %233

156:                                              ; preds = %154
  call void @_ZN6langcc6Option2_TINS_8StrSliceEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %27) #8
  store ptr %155, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  %157 = load ptr, ptr %26, align 8, !tbaa !5
  %158 = load i64, ptr %8, align 8, !tbaa !19
  %159 = trunc i64 %158 to i32
  %160 = getelementptr inbounds %"struct.langcc::Result_T", ptr %16, i32 0, i32 1
  %161 = getelementptr inbounds %"struct.langcc::TokenBounds", ptr %160, i32 0, i32 1
  %162 = load i32, ptr %161, align 4, !tbaa !34
  invoke void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %31, i32 noundef %159, i32 noundef %162)
          to label %163 unwind label %237

163:                                              ; preds = %156
  %164 = load i64, ptr %31, align 4
  invoke void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %157, i64 %164)
          to label %165 unwind label %237

165:                                              ; preds = %163
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %166, i32 0, i32 6
  %168 = load ptr, ptr %167, align 8, !tbaa !30
  %169 = load i64, ptr %5, align 8, !tbaa !19
  %170 = getelementptr inbounds %"struct.langcc::Result_T", ptr %168, i64 %169
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %170, ptr align 8 %30, i64 16, i1 false), !tbaa.struct !31
  %171 = load i64, ptr %5, align 8, !tbaa !19
  %172 = add nsw i64 %171, 1
  store i64 %172, ptr %5, align 8, !tbaa !19
  %173 = load ptr, ptr %3, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %173, i32 0, i32 8
  %175 = load ptr, ptr %174, align 8, !tbaa !35
  %176 = load i64, ptr %6, align 8, !tbaa !19
  %177 = getelementptr inbounds %"struct.langcc::Result_T", ptr %175, i64 %176
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %177, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !31
  %178 = load i64, ptr %6, align 8, !tbaa !19
  %179 = add nsw i64 %178, 1
  store i64 %179, ptr %6, align 8, !tbaa !19
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %180, i32 0, i32 8
  %182 = load ptr, ptr %181, align 8, !tbaa !35
  %183 = load i64, ptr %6, align 8, !tbaa !19
  %184 = getelementptr inbounds %"struct.langcc::Result_T", ptr %182, i64 %183
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %184, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !31
  %185 = load i64, ptr %6, align 8, !tbaa !19
  %186 = add nsw i64 %185, 1
  store i64 %186, ptr %6, align 8, !tbaa !19
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %187, i32 0, i32 8
  %189 = load ptr, ptr %188, align 8, !tbaa !35
  %190 = load i64, ptr %6, align 8, !tbaa !19
  %191 = getelementptr inbounds %"struct.langcc::Result_T", ptr %189, i64 %190
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %191, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !31
  %192 = load i64, ptr %6, align 8, !tbaa !19
  %193 = add nsw i64 %192, 1
  store i64 %193, ptr %6, align 8, !tbaa !19
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %194, i32 0, i32 8
  %196 = load ptr, ptr %195, align 8, !tbaa !35
  %197 = load i64, ptr %6, align 8, !tbaa !19
  %198 = getelementptr inbounds %"struct.langcc::Result_T", ptr %196, i64 %197
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %198, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !31
  %199 = load i64, ptr %6, align 8, !tbaa !19
  %200 = add nsw i64 %199, 1
  store i64 %200, ptr %6, align 8, !tbaa !19
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %201, i32 0, i32 8
  %203 = load ptr, ptr %202, align 8, !tbaa !35
  %204 = load i64, ptr %6, align 8, !tbaa !19
  %205 = getelementptr inbounds %"struct.langcc::Result_T", ptr %203, i64 %204
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %205, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !31
  %206 = load i64, ptr %6, align 8, !tbaa !19
  %207 = add nsw i64 %206, 1
  store i64 %207, ptr %6, align 8, !tbaa !19
  %208 = load ptr, ptr %3, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %208, i32 0, i32 8
  %210 = load ptr, ptr %209, align 8, !tbaa !35
  %211 = load i64, ptr %6, align 8, !tbaa !19
  %212 = getelementptr inbounds %"struct.langcc::Result_T", ptr %210, i64 %211
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %212, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !31
  %213 = load i64, ptr %6, align 8, !tbaa !19
  %214 = add nsw i64 %213, 1
  store i64 %214, ptr %6, align 8, !tbaa !19
  %215 = load i64, ptr %8, align 8, !tbaa !19
  invoke void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 100, i64 noundef %215)
          to label %216 unwind label %237

216:                                              ; preds = %165
  %217 = load i64, ptr %4, align 8, !tbaa !19
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %218, i32 0, i32 5
  store i64 %217, ptr %219, align 8, !tbaa !9
  %220 = load i64, ptr %5, align 8, !tbaa !19
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %221, i32 0, i32 7
  store i64 %220, ptr %222, align 8, !tbaa !20
  %223 = load i64, ptr %6, align 8, !tbaa !19
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %224, i32 0, i32 9
  store i64 %223, ptr %225, align 8, !tbaa !21
  %226 = load i64, ptr %7, align 8, !tbaa !19
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = getelementptr inbounds %"struct.langcc::ParserProcState", ptr %227, i32 0, i32 3
  store i64 %226, ptr %228, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  ret void

229:                                              ; preds = %2
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %28, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %29, align 4
  br label %241

233:                                              ; preds = %154
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %28, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %29, align 4
  call void @_ZN6langcc6Option2_TINS_8StrSliceEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %27) #8
  br label %241

237:                                              ; preds = %165, %163, %156
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %28, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  br label %241

241:                                              ; preds = %237, %233, %229
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %242

242:                                              ; preds = %241
  %243 = load ptr, ptr %28, align 8
  %244 = load i32, ptr %29, align 4
  %245 = insertvalue { ptr, i32 } poison, ptr %243, 0
  %246 = insertvalue { ptr, i32 } %245, i32 %244, 1
  resume { ptr, i32 } %246
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN6langcc15make_rc_inc_extINS_6Option2_TINS_8StrSliceEEEJS4_EEEPT_PNS_5ArenaEDpT0_(ptr noundef, ptr noundef) #6

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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 = { 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 #7 = { mustprogress noinline uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress noinline uwtable
define dso_local void @_ZN4lang4meta6parser18_parse_proc_10_1_0EPN6langcc15ParserProcStateE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::SymItem") align 8 %0, ptr noundef %1) local_unnamed_addr #7 personality ptr @__gxx_personality_v0 {
  %.sroa.05 = 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::StrSlice", align 8
  %9 = alloca %"struct.langcc::Option::_T.305", align 4
  %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 = getelementptr inbounds i8, ptr %1, i64 24
  %21 = load ptr, ptr %20, align 8, !tbaa !21
  %22 = getelementptr %"struct.langcc::ParserVertexStackItem", ptr %21, i64 %19
  %23 = getelementptr i8, ptr %22, i64 -120
  %24 = load i64, ptr %23, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %.sroa.05)
  %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 %15
  %28 = getelementptr i8, ptr %27, i64 -16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %.sroa.05, ptr noundef nonnull align 8 dereferenceable(12) %28, i64 12, i1 false), !tbaa.struct !25
  %.sroa.56.0..sroa_idx = getelementptr i8, ptr %27, i64 -4
  %.sroa.56.0.copyload = load i32, ptr %.sroa.56.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
  %34 = add nsw i64 %15, -7
  %35 = getelementptr inbounds %"struct.langcc::Result_T", ptr %26, i64 %34
  %.sroa.03.0.copyload = load ptr, ptr %35, align 8, !tbaa !26
  %.sroa.54.0..sroa_idx = getelementptr inbounds i8, ptr %35, i64 8
  %.sroa.54.0.copyload = load i64, ptr %.sroa.54.0..sroa_idx, align 8
  %36 = tail call i64 @_ZN6langcc26result_decode_token_boundsENS_8Result_TE(ptr %.sroa.03.0.copyload, i64 %.sroa.54.0.copyload)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  %sext = shl i64 %36, 32
  %37 = ashr exact i64 %sext, 32
  call void @_ZN6langcc15ParserProcState11fetch_tokenEl(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::StrSlice") align 8 %8, ptr noundef nonnull align 8 dereferenceable(192) %1, i64 noundef %37)
  %38 = getelementptr inbounds i8, ptr %1, i64 184
  %39 = load ptr, ptr %38, align 8, !tbaa !28
  invoke void @_ZN6langcc4SomeINS_8StrSliceEEENS_6Option2_TIT_EERKS4_(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::Option::_T.305") align 4 %9, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %40 unwind label %70

40:                                               ; preds = %2
  %41 = invoke noundef ptr @_ZN6langcc15make_rc_inc_extINS_6Option2_TINS_8StrSliceEEEJS4_EEEPT_PNS_5ArenaEDpT0_(ptr noundef %39, ptr noundef nonnull %9)
          to label %42 unwind label %72

42:                                               ; preds = %40
  call void @_ZN6langcc6Option2_TINS_8StrSliceEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %43 = trunc i64 %24 to i32
  call void @_ZN6langcc11TokenBoundsC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %11, i32 noundef %43, i32 noundef %.sroa.56.0.copyload)
  %44 = load i64, ptr %11, align 8
  call void @_ZN6langcc8Result_TC2EPvNS_11TokenBoundsE(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %41, i64 %44)
  %45 = load ptr, ptr %25, align 8, !tbaa !24
  %46 = getelementptr inbounds %"struct.langcc::Result_T", ptr %45, i64 %34
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull align 8 dereferenceable(16) %10, i64 16, i1 false), !tbaa.struct !25
  %47 = getelementptr inbounds i8, ptr %1, i64 72
  %48 = load ptr, ptr %47, align 8, !tbaa !29
  %49 = getelementptr inbounds %"struct.langcc::Result_T", ptr %48, i64 %17
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %49, ptr noundef nonnull align 8 dereferenceable(12) %.sroa.05, i64 12, i1 false), !tbaa.struct !25
  %.sroa.56.0..sroa_idx7 = getelementptr inbounds i8, ptr %49, i64 12
  store i32 %.sroa.56.0.copyload, ptr %.sroa.56.0..sroa_idx7, align 4, !tbaa !27
  %50 = load ptr, ptr %47, align 8, !tbaa !29
  %51 = getelementptr %"struct.langcc::Result_T", ptr %50, i64 %17
  %52 = getelementptr i8, ptr %51, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(16) %3, i64 16, i1 false), !tbaa.struct !25
  %53 = load ptr, ptr %47, align 8, !tbaa !29
  %54 = getelementptr %"struct.langcc::Result_T", ptr %53, i64 %17
  %55 = getelementptr i8, ptr %54, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 8 dereferenceable(16) %4, i64 16, i1 false), !tbaa.struct !25
  %56 = load ptr, ptr %47, align 8, !tbaa !29
  %57 = getelementptr %"struct.langcc::Result_T", ptr %56, i64 %17
  %58 = getelementptr i8, ptr %57, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 8 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !25
  %59 = load ptr, ptr %47, align 8, !tbaa !29
  %60 = getelementptr %"struct.langcc::Result_T", ptr %59, i64 %17
  %61 = getelementptr i8, ptr %60, i64 64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %61, ptr noundef nonnull align 8 dereferenceable(16) %6, i64 16, i1 false), !tbaa.struct !25
  %62 = load ptr, ptr %47, align 8, !tbaa !29
  %63 = getelementptr %"struct.langcc::Result_T", ptr %62, i64 %17
  %64 = getelementptr i8, ptr %63, i64 80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 8 dereferenceable(16) %7, i64 16, i1 false), !tbaa.struct !25
  invoke void @_ZN6langcc7SymItemC2Ell(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef 100, i64 noundef %24)
          to label %65 unwind label %74

65:                                               ; preds = %42
  %66 = add nsw i64 %17, 6
  %67 = add nsw i64 %15, -6
  %68 = add nsw i64 %13, -7
  %69 = add nsw i64 %19, -7
  store i64 %68, ptr %12, align 8, !tbaa !5
  store i64 %67, ptr %14, align 8, !tbaa !18
  store i64 %66, ptr %16, align 8, !tbaa !19
  store i64 %69, ptr %18, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #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)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %.sroa.05)
  ret void

70:                                               ; preds = %2
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %76

72:                                               ; preds = %40
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6Option2_TINS_8StrSliceEED2Ev(ptr noundef nonnull align 4 dereferenceable(36) %9) #8
  br label %76

74:                                               ; preds = %42
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %76

76:                                               ; preds = %74, %72, %70
  %.pn = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ], [ %71, %70 ]
  call void @_ZN6langcc8StrSliceD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #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)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %.sroa.05)
  resume { ptr, i32 } %.pn
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN6langcc15make_rc_inc_extINS_6Option2_TINS_8StrSliceEEEJS4_EEEPT_PNS_5ArenaEDpT0_(ptr noundef, ptr noundef) local_unnamed_addr #6

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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 = { 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 #7 = { mustprogress noinline uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }

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

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