; LLVM IR from jzimmerman/langcc :: gen/data (gen)

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

%"struct.langcc::rc_ptr.28" = type { ptr, ptr }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"struct.langcc::rc_ptr.21" = type { ptr, ptr }
%"struct.langcc::rc_ptr.105" = type { ptr, ptr }
%"struct.langcc::TokenBounds" = type { i32, i32 }
%"struct.lang::data::Node::SumId::_T" = type { %"struct.lang::data::Node::_T", %"struct.langcc::rc_ptr.105" }
%"struct.lang::data::Node::_T" = type { ptr, %"struct.langcc::hash_obj", %"struct.langcc::enable_rc_from_this_poly", i32, i64, %"struct.langcc::TokenBounds", i8, i64, %"struct.langcc::ParserAttrMask", %"struct.langcc::ParserLookahead" }
%"struct.langcc::hash_obj" = type { %"struct.langcc::Option::_T" }
%"struct.langcc::Option::_T" = type { i32, [32 x i8] }
%"struct.langcc::enable_rc_from_this_poly" = type { ptr, ptr }

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: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang4data4Node5SumId4makeElN6langcc11TokenBoundsEblNS3_14ParserAttrMaskENS3_15ParserLookaheadENS3_6rc_ptrINS3_3VecINS3_8StrSliceEEEEE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.28") align 8, i64 noundef, i64, i1 noundef zeroext, i64 noundef, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8, ptr noundef) #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK6langcc3VecINS_8StrSliceEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64)) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFN6langcc6rc_ptrIN4lang4data4Node2_TEEES6_EEclES6_(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.21") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc7make_rcINS_3VecINS_8StrSliceEEEJEEENS_6rc_ptrIT_EEDpT0_(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.105") align 8) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc3VecINS_8StrSliceEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN6langcc3VecINS_8StrSliceEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z21xformT_lang_data_NodeN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEESt8functionIFNS0_INS3_2_TEEES9_EE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.21") align 8 %0, ptr noundef %1, ptr noundef %2) #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.langcc::rc_ptr.105", align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.langcc::rc_ptr.28", align 8
  %12 = alloca %"struct.langcc::TokenBounds", align 4
  %13 = alloca %"struct.langcc::ParserAttrMask", align 8
  %14 = alloca %"struct.langcc::ParserLookahead", align 8
  %15 = alloca %"struct.langcc::rc_ptr.105", align 8
  %16 = alloca %"struct.langcc::rc_ptr.21", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  call void @_ZN6langcc7make_rcINS_3VecINS_8StrSliceEEEJEEENS_6rc_ptrIT_EEDpT0_(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.105") align 8 %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store i64 0, ptr %8, align 8, !tbaa !9
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %17

17:                                               ; preds = %39, %3
  %18 = load i64, ptr %8, align 8, !tbaa !9
  %19 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %20 unwind label %42

20:                                               ; preds = %17
  %21 = getelementptr inbounds %"struct.lang::data::Node::SumId::_T", ptr %19, i32 0, i32 1
  %22 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %23 unwind label %42

23:                                               ; preds = %20
  %24 = invoke noundef i64 @_ZNK6langcc3VecINS_8StrSliceEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %22)
          to label %25 unwind label %42

25:                                               ; preds = %23
  %26 = icmp slt i64 %18, %24
  br i1 %26, label %27, label %46

27:                                               ; preds = %25
  %28 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %29 unwind label %42

29:                                               ; preds = %27
  %30 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %31 unwind label %42

31:                                               ; preds = %29
  %32 = getelementptr inbounds %"struct.lang::data::Node::SumId::_T", ptr %30, i32 0, i32 1
  %33 = invoke noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %34 unwind label %42

34:                                               ; preds = %31
  %35 = load i64, ptr %8, align 8, !tbaa !9
  %36 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN6langcc3VecINS_8StrSliceEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %33, i64 noundef %35)
          to label %37 unwind label %42

37:                                               ; preds = %34
  invoke void @_ZN6langcc3VecINS_8StrSliceEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(64) %28, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %38 unwind label %42

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38
  %40 = load i64, ptr %8, align 8, !tbaa !9
  %41 = add nsw i64 %40, 1
  store i64 %41, ptr %8, align 8, !tbaa !9
  br label %17, !llvm.loop !11

42:                                               ; preds = %37, %34, %31, %29, %27, %23, %20, %17
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %9, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %10, align 4
  br label %92

46:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %47 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %48 unwind label %74

48:                                               ; preds = %46
  %49 = getelementptr inbounds %"struct.lang::data::Node::_T", ptr %47, i32 0, i32 4
  %50 = load i64, ptr %49, align 8, !tbaa !13
  %51 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %52 unwind label %74

52:                                               ; preds = %48
  %53 = getelementptr inbounds %"struct.lang::data::Node::_T", ptr %51, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %53, i64 8, i1 false), !tbaa.struct !25
  %54 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %55 unwind label %74

55:                                               ; preds = %52
  %56 = getelementptr inbounds %"struct.lang::data::Node::_T", ptr %54, i32 0, i32 6
  %57 = load i8, ptr %56, align 8, !tbaa !27, !range !28, !noundef !29
  %58 = trunc i8 %57 to i1
  %59 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %60 unwind label %74

60:                                               ; preds = %55
  %61 = getelementptr inbounds %"struct.lang::data::Node::_T", ptr %59, i32 0, i32 7
  %62 = load i64, ptr %61, align 8, !tbaa !30
  %63 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %64 unwind label %74

64:                                               ; preds = %60
  %65 = getelementptr inbounds %"struct.lang::data::Node::_T", ptr %63, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %13, ptr align 8 %65, i64 16, i1 false), !tbaa.struct !31
  %66 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %67 unwind label %74

67:                                               ; preds = %64
  %68 = getelementptr inbounds %"struct.lang::data::Node::_T", ptr %66, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %14, ptr align 8 %68, i64 16, i1 false), !tbaa.struct !31
  invoke void @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %69 unwind label %74

69:                                               ; preds = %67
  %70 = load i64, ptr %12, align 4
  invoke void @_ZN4lang4data4Node5SumId4makeElN6langcc11TokenBoundsEblNS3_14ParserAttrMaskENS3_15ParserLookaheadENS3_6rc_ptrINS3_3VecINS3_8StrSliceEEEEE(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.28") align 8 %11, i64 noundef %50, i64 %70, i1 noundef zeroext %58, i64 noundef %62, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8 %13, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8 %14, ptr noundef %15)
          to label %71 unwind label %78

71:                                               ; preds = %69
  call void @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  invoke void @_ZN6langcc6rc_ptrIN4lang4data4Node2_TEEC2INS3_5SumId2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISA_EE(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %72 unwind label %82

72:                                               ; preds = %71
  invoke void @_ZNKSt8functionIFN6langcc6rc_ptrIN4lang4data4Node2_TEEES6_EEclES6_(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.21") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef %16)
          to label %73 unwind label %86

73:                                               ; preds = %72
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  ret void

74:                                               ; preds = %67, %64, %60, %55, %52, %48, %46
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %9, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %10, align 4
  br label %91

78:                                               ; preds = %69
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %9, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %10, align 4
  call void @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  br label %91

82:                                               ; preds = %71
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %9, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %10, align 4
  br label %90

86:                                               ; preds = %72
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %9, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %10, align 4
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  br label %90

90:                                               ; preds = %86, %82
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  br label %91

91:                                               ; preds = %90, %78, %74
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  br label %92

92:                                               ; preds = %91, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  br label %93

93:                                               ; preds = %92
  %94 = load ptr, ptr %9, align 8
  %95 = load i32, ptr %10, align 4
  %96 = insertvalue { ptr, i32 } poison, ptr %94, 0
  %97 = insertvalue { ptr, i32 } %96, i32 %95, 1
  resume { ptr, i32 } %97
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 72}
!14 = !{!"_ZTSN4lang4data4Node2_TE", !15, i64 8, !18, i64 48, !19, i64 64, !10, i64 72, !20, i64 80, !22, i64 88, !10, i64 96, !23, i64 104, !24, i64 120}
!15 = !{!"_ZTSN6langcc8hash_objE", !16, i64 0}
!16 = !{!"_ZTSN6langcc6Option2_TINS_7HashValEEE", !17, i64 0, !7, i64 4}
!17 = !{!"_ZTSN6langcc6Option2_WE", !7, i64 0}
!18 = !{!"_ZTSN6langcc24enable_rc_from_this_polyE", !6, i64 0, !6, i64 8}
!19 = !{!"_ZTSN4lang4data4Node2_WE", !7, i64 0}
!20 = !{!"_ZTSN6langcc11TokenBoundsE", !21, i64 0, !21, i64 4}
!21 = !{!"int", !7, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTSN6langcc14ParserAttrMaskE", !7, i64 0}
!24 = !{!"_ZTSN6langcc15ParserLookaheadE", !7, i64 0}
!25 = !{i64 0, i64 4, !26, i64 4, i64 4, !26}
!26 = !{!21, !21, i64 0}
!27 = !{!14, !22, i64 88}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!14, !10, i64 96}
!31 = !{i64 0, i64 16, !32}
!32 = !{!7, !7, i64 0}


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

%"struct.langcc::rc_ptr.28" = type { ptr, ptr }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"struct.langcc::rc_ptr.21" = type { ptr, ptr }
%"struct.langcc::rc_ptr.105" = type { ptr, ptr }

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: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang4data4Node5SumId4makeElN6langcc11TokenBoundsEblNS3_14ParserAttrMaskENS3_15ParserLookaheadENS3_6rc_ptrINS3_3VecINS3_8StrSliceEEEEE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.28") align 8, i64 noundef, i64, i1 noundef zeroext, i64 noundef, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK6langcc3VecINS_8StrSliceEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6langcc7make_rcINS_3VecINS_8StrSliceEEEJEEENS_6rc_ptrIT_EEDpT0_(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.105") align 8) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6langcc3VecINS_8StrSliceEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN6langcc3VecINS_8StrSliceEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z21xformT_lang_data_NodeN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEESt8functionIFNS0_INS3_2_TEEES9_EE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.21") align 8 %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.langcc::rc_ptr.105", align 8
  %5 = alloca %"struct.langcc::rc_ptr.28", align 8
  %6 = alloca %"struct.langcc::ParserAttrMask", align 8
  %7 = alloca %"struct.langcc::ParserLookahead", align 8
  %8 = alloca %"struct.langcc::rc_ptr.105", align 8
  %9 = alloca %"struct.langcc::rc_ptr.21", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  call void @_ZN6langcc7make_rcINS_3VecINS_8StrSliceEEEJEEENS_6rc_ptrIT_EEDpT0_(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.105") align 8 %4)
  %10 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %11 = getelementptr inbounds i8, ptr %10, i64 136
  %12 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %13 = call noundef i64 @_ZNK6langcc3VecINS_8StrSliceEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %12)
  %14 = icmp sgt i64 %13, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3, %20
  %.010 = phi i64 [ %21, %20 ], [ 0, %3 ]
  %15 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %16 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %17 = getelementptr inbounds i8, ptr %16, i64 136
  %18 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %19 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN6langcc3VecINS_8StrSliceEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %18, i64 noundef %.010)
  invoke void @_ZN6langcc3VecINS_8StrSliceEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(64) %15, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %20 unwind label %27

20:                                               ; preds = %.lr.ph
  %21 = add nuw nsw i64 %.010, 1
  %22 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %23 = getelementptr inbounds i8, ptr %22, i64 136
  %24 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %25 = call noundef i64 @_ZNK6langcc3VecINS_8StrSliceEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %24)
  %26 = icmp slt i64 %21, %25
  br i1 %26, label %.lr.ph, label %._crit_edge, !llvm.loop !5

27:                                               ; preds = %.lr.ph
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %52

._crit_edge:                                      ; preds = %20, %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %29 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %30 = getelementptr inbounds i8, ptr %29, i64 72
  %31 = load i64, ptr %30, align 8, !tbaa !7
  %32 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %33 = getelementptr inbounds i8, ptr %32, i64 80
  %.sroa.0.0.copyload = load i64, ptr %33, align 8
  %34 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %35 = getelementptr inbounds i8, ptr %34, i64 88
  %36 = load i8, ptr %35, align 8, !tbaa !23, !range !24, !noundef !25
  %37 = trunc nuw i8 %36 to i1
  %38 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %39 = getelementptr inbounds i8, ptr %38, i64 96
  %40 = load i64, ptr %39, align 8, !tbaa !26
  %41 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %42 = getelementptr inbounds i8, ptr %41, i64 104
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %42, i64 16, i1 false), !tbaa.struct !27
  %43 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %44 = getelementptr inbounds i8, ptr %43, i64 120
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %44, i64 16, i1 false), !tbaa.struct !27
  call void @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %4)
  invoke void @_ZN4lang4data4Node5SumId4makeElN6langcc11TokenBoundsEblNS3_14ParserAttrMaskENS3_15ParserLookaheadENS3_6rc_ptrINS3_3VecINS3_8StrSliceEEEEE(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.28") align 8 %5, i64 noundef %31, i64 %.sroa.0.0.copyload, i1 noundef zeroext %37, i64 noundef %40, ptr noundef nonnull byval(%"struct.langcc::ParserAttrMask") align 8 %6, ptr noundef nonnull byval(%"struct.langcc::ParserLookahead") align 8 %7, ptr noundef nonnull %8)
          to label %45 unwind label %47

45:                                               ; preds = %._crit_edge
  call void @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node2_TEEC2INS3_5SumId2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISA_EE(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %5)
  invoke void @_ZNKSt8functionIFN6langcc6rc_ptrIN4lang4data4Node2_TEEES6_EEclES6_(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.21") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull %9)
          to label %46 unwind label %49

46:                                               ; preds = %45
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  ret void

47:                                               ; preds = %._crit_edge
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  br label %51

49:                                               ; preds = %45
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @_ZN6langcc6rc_ptrIN4lang4data4Node5SumId2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  br label %51

51:                                               ; preds = %49, %47
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %52

52:                                               ; preds = %51, %27
  %.pn8 = phi { ptr, i32 } [ %28, %27 ], [ %.pn, %51 ]
  call void @_ZN6langcc6rc_ptrINS_3VecINS_8StrSliceEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn8
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !17, i64 72}
!8 = !{!"_ZTSN4lang4data4Node2_TE", !9, i64 8, !14, i64 48, !16, i64 64, !17, i64 72, !18, i64 80, !20, i64 88, !17, i64 96, !21, i64 104, !22, i64 120}
!9 = !{!"_ZTSN6langcc8hash_objE", !10, i64 0}
!10 = !{!"_ZTSN6langcc6Option2_TINS_7HashValEEE", !11, i64 0, !12, i64 4}
!11 = !{!"_ZTSN6langcc6Option2_WE", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN6langcc24enable_rc_from_this_polyE", !15, i64 0, !15, i64 8}
!15 = !{!"any pointer", !12, i64 0}
!16 = !{!"_ZTSN4lang4data4Node2_WE", !12, i64 0}
!17 = !{!"long", !12, i64 0}
!18 = !{!"_ZTSN6langcc11TokenBoundsE", !19, i64 0, !19, i64 4}
!19 = !{!"int", !12, i64 0}
!20 = !{!"bool", !12, i64 0}
!21 = !{!"_ZTSN6langcc14ParserAttrMaskE", !12, i64 0}
!22 = !{!"_ZTSN6langcc15ParserLookaheadE", !12, i64 0}
!23 = !{!8, !20, i64 88}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!8, !17, i64 96}
!27 = !{i64 0, i64 16, !28}
!28 = !{!12, !12, i64 0}


; Effective O3 passes: GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass