; LLVM IR from jzimmerman/langcc :: gen/cc (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.297" = 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.38" = type { ptr, ptr }
%"class.std::function.555" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"struct.langcc::TokenBounds" = type { i32, i32 }
%"struct.lang::cc::Node::SwitchCase::Default::_T" = type { %"struct.lang::cc::Node::SwitchCase::_T.base", %"struct.langcc::rc_ptr.38" }
%"struct.lang::cc::Node::SwitchCase::_T.base" = type <{ %"struct.lang::cc::Node::_T", i32 }>
%"struct.lang::cc::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_ptrIN4lang2cc4Node5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang2cc4Node10SwitchCase7Default4makeElN6langcc11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS1_5Block2_TEEE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.297") 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) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEEC2INS3_10SwitchCase7Default2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISB_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 @_ZNSt8functionIFN6langcc6rc_ptrIN4lang2cc4Node2_TEEES6_EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFN6langcc6rc_ptrIN4lang2cc4Node2_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) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z18xform_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEEESt8functionIFNS0_INS3_2_TEEES9_EE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.38") align 8, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19xformT_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEESt8functionIFNS0_INS3_2_TEEESA_EE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.21") align 8 %0, ptr noundef %1, ptr noundef %2) #4 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.38", align 8
  %8 = alloca %"struct.langcc::rc_ptr.38", align 8
  %9 = alloca %"class.std::function.555", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.langcc::rc_ptr.297", align 8
  %13 = alloca %"struct.langcc::TokenBounds", align 4
  %14 = alloca %"struct.langcc::ParserAttrMask", align 8
  %15 = alloca %"struct.langcc::ParserLookahead", align 8
  %16 = alloca %"struct.langcc::rc_ptr.38", align 8
  %17 = 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) #6
  %18 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %19 = getelementptr inbounds %"struct.lang::cc::Node::SwitchCase::Default::_T", ptr %18, i32 0, i32 1
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %19)
  invoke void @_ZNSt8functionIFN6langcc6rc_ptrIN4lang2cc4Node2_TEEES6_EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %20 unwind label %49

20:                                               ; preds = %3
  invoke void @_Z18xform_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEEESt8functionIFNS0_INS3_2_TEEES9_EE(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.38") align 8 %7, ptr noundef %8, ptr noundef %9)
          to label %21 unwind label %53

21:                                               ; preds = %20
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %22 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %23 unwind label %58

23:                                               ; preds = %21
  %24 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %22, i32 0, i32 4
  %25 = load i64, ptr %24, align 8, !tbaa !9
  %26 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %27 unwind label %58

27:                                               ; preds = %23
  %28 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %26, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %28, i64 8, i1 false), !tbaa.struct !22
  %29 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %30 unwind label %58

30:                                               ; preds = %27
  %31 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %29, i32 0, i32 6
  %32 = load i8, ptr %31, align 8, !tbaa !24, !range !25, !noundef !26
  %33 = trunc i8 %32 to i1
  %34 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %35 unwind label %58

35:                                               ; preds = %30
  %36 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %34, i32 0, i32 7
  %37 = load i64, ptr %36, align 8, !tbaa !27
  %38 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %39 unwind label %58

39:                                               ; preds = %35
  %40 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %38, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %14, ptr align 8 %40, i64 16, i1 false), !tbaa.struct !28
  %41 = invoke noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %42 unwind label %58

42:                                               ; preds = %39
  %43 = getelementptr inbounds %"struct.lang::cc::Node::_T", ptr %41, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %15, ptr align 8 %43, i64 16, i1 false), !tbaa.struct !28
  invoke void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %44 unwind label %58

44:                                               ; preds = %42
  %45 = load i64, ptr %13, align 4
  invoke void @_ZN4lang2cc4Node10SwitchCase7Default4makeElN6langcc11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS1_5Block2_TEEE(ptr dead_on_unwind writable sret(%"struct.langcc::rc_ptr.297") align 8 %12, i64 noundef %25, i64 %45, i1 noundef zeroext %33, i64 noundef %37, ptr noundef byval(%"struct.langcc::ParserAttrMask") align 8 %14, ptr noundef byval(%"struct.langcc::ParserLookahead") align 8 %15, ptr noundef %16)
          to label %46 unwind label %62

46:                                               ; preds = %44
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  invoke void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEEC2INS3_10SwitchCase7Default2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISB_EE(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %47 unwind label %66

47:                                               ; preds = %46
  invoke void @_ZNKSt8functionIFN6langcc6rc_ptrIN4lang2cc4Node2_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 %17)
          to label %48 unwind label %70

48:                                               ; preds = %47
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  ret void

49:                                               ; preds = %3
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %10, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %11, align 4
  br label %57

53:                                               ; preds = %20
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %10, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %11, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %57

57:                                               ; preds = %53, %49
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  br label %76

58:                                               ; preds = %42, %39, %35, %30, %27, %23, %21
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %10, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %11, align 4
  br label %75

62:                                               ; preds = %44
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %10, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %11, align 4
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  br label %75

66:                                               ; preds = %46
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %10, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %11, align 4
  br label %74

70:                                               ; preds = %47
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %10, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %11, align 4
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  br label %74

74:                                               ; preds = %70, %66
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  br label %75

75:                                               ; preds = %74, %62, %58
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  br label %76

76:                                               ; preds = %75, %57
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  br label %77

77:                                               ; preds = %76
  %78 = load ptr, ptr %10, align 8
  %79 = load i32, ptr %11, align 4
  %80 = insertvalue { ptr, i32 } poison, ptr %78, 0
  %81 = insertvalue { ptr, i32 } %80, i32 %79, 1
  resume { ptr, i32 } %81
}

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 = { 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 #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 = { 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 = { 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, !16, i64 72}
!10 = !{!"_ZTSN4lang2cc4Node2_TE", !11, i64 8, !14, i64 48, !15, i64 64, !16, i64 72, !17, i64 80, !19, i64 88, !16, i64 96, !20, i64 104, !21, i64 120}
!11 = !{!"_ZTSN6langcc8hash_objE", !12, i64 0}
!12 = !{!"_ZTSN6langcc6Option2_TINS_7HashValEEE", !13, i64 0, !7, i64 4}
!13 = !{!"_ZTSN6langcc6Option2_WE", !7, i64 0}
!14 = !{!"_ZTSN6langcc24enable_rc_from_this_polyE", !6, i64 0, !6, i64 8}
!15 = !{!"_ZTSN4lang2cc4Node2_WE", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN6langcc11TokenBoundsE", !18, i64 0, !18, i64 4}
!18 = !{!"int", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN6langcc14ParserAttrMaskE", !7, i64 0}
!21 = !{!"_ZTSN6langcc15ParserLookaheadE", !7, i64 0}
!22 = !{i64 0, i64 4, !23, i64 4, i64 4, !23}
!23 = !{!18, !18, i64 0}
!24 = !{!10, !19, i64 88}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!10, !16, i64 96}
!28 = !{i64 0, i64 16, !29}
!29 = !{!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.297" = 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.38" = type { ptr, ptr }
%"class.std::function.555" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = 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: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4lang2cc4Node10SwitchCase7Default4makeElN6langcc11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS1_5Block2_TEEE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.297") 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 #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEEC2INS3_10SwitchCase7Default2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISB_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 @_ZNSt8functionIFN6langcc6rc_ptrIN4lang2cc4Node2_TEEES6_EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFN6langcc6rc_ptrIN4lang2cc4Node2_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 #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z18xform_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEEESt8functionIFNS0_INS3_2_TEEES9_EE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.38") align 8, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19xformT_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEESt8functionIFNS0_INS3_2_TEEESA_EE(ptr dead_on_unwind noalias writable sret(%"struct.langcc::rc_ptr.21") align 8 %0, ptr noundef nonnull %1, ptr noundef %2) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.langcc::rc_ptr.38", align 8
  %5 = alloca %"struct.langcc::rc_ptr.38", align 8
  %6 = alloca %"class.std::function.555", align 8
  %7 = alloca %"struct.langcc::rc_ptr.297", align 8
  %8 = alloca %"struct.langcc::ParserAttrMask", align 8
  %9 = alloca %"struct.langcc::ParserLookahead", align 8
  %10 = alloca %"struct.langcc::rc_ptr.38", align 8
  %11 = alloca %"struct.langcc::rc_ptr.21", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %12 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %13 = getelementptr inbounds i8, ptr %12, i64 144
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %13)
  invoke void @_ZNSt8functionIFN6langcc6rc_ptrIN4lang2cc4Node2_TEEES6_EEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %14 unwind label %35

14:                                               ; preds = %3
  invoke void @_Z18xform_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEEESt8functionIFNS0_INS3_2_TEEES9_EE(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.38") align 8 %4, ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %15 unwind label %37

15:                                               ; preds = %14
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %16 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %17 = getelementptr inbounds i8, ptr %16, i64 72
  %18 = load i64, ptr %17, align 8, !tbaa !5
  %19 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %20 = getelementptr inbounds i8, ptr %19, i64 80
  %.sroa.0.0.copyload = load i64, ptr %20, align 8
  %21 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %22 = getelementptr inbounds i8, ptr %21, i64 88
  %23 = load i8, ptr %22, align 8, !tbaa !21, !range !22, !noundef !23
  %24 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %25 = getelementptr inbounds i8, ptr %24, i64 96
  %26 = load i64, ptr %25, align 8, !tbaa !24
  %27 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %28 = getelementptr inbounds i8, ptr %27, i64 104
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %28, i64 16, i1 false), !tbaa.struct !25
  %29 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %30 = getelementptr inbounds i8, ptr %29, i64 120
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %30, i64 16, i1 false), !tbaa.struct !25
  invoke void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %31 unwind label %39

31:                                               ; preds = %15
  %32 = trunc nuw i8 %23 to i1
  invoke void @_ZN4lang2cc4Node10SwitchCase7Default4makeElN6langcc11TokenBoundsEblNS4_14ParserAttrMaskENS4_15ParserLookaheadENS4_6rc_ptrINS1_5Block2_TEEE(ptr dead_on_unwind nonnull writable sret(%"struct.langcc::rc_ptr.297") align 8 %7, i64 noundef %18, i64 %.sroa.0.0.copyload, i1 noundef zeroext %32, i64 noundef %26, ptr noundef nonnull byval(%"struct.langcc::ParserAttrMask") align 8 %8, ptr noundef nonnull byval(%"struct.langcc::ParserLookahead") align 8 %9, ptr noundef nonnull %10)
          to label %33 unwind label %41

33:                                               ; preds = %31
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEEC2INS3_10SwitchCase7Default2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISB_EE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %7)
  invoke void @_ZNKSt8functionIFN6langcc6rc_ptrIN4lang2cc4Node2_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 %11)
          to label %34 unwind label %43

34:                                               ; preds = %33
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  ret void

35:                                               ; preds = %3
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %46

37:                                               ; preds = %14
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %46

39:                                               ; preds = %15
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %45

41:                                               ; preds = %31
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br label %45

43:                                               ; preds = %33
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node10SwitchCase7Default2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  br label %45

45:                                               ; preds = %43, %41, %39
  %.pn5 = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %46

46:                                               ; preds = %35, %37, %45
  %.sink = phi ptr [ %4, %45 ], [ %5, %37 ], [ %5, %35 ]
  %.pn5.pn = phi { ptr, i32 } [ %.pn5, %45 ], [ %38, %37 ], [ %36, %35 ]
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Block2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.sink) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn5.pn
}

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 = { 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 #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 = { 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 = { 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, !15, i64 72}
!6 = !{!"_ZTSN4lang2cc4Node2_TE", !7, i64 8, !12, i64 48, !14, i64 64, !15, i64 72, !16, i64 80, !18, i64 88, !15, i64 96, !19, i64 104, !20, i64 120}
!7 = !{!"_ZTSN6langcc8hash_objE", !8, i64 0}
!8 = !{!"_ZTSN6langcc6Option2_TINS_7HashValEEE", !9, i64 0, !10, i64 4}
!9 = !{!"_ZTSN6langcc6Option2_WE", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN6langcc24enable_rc_from_this_polyE", !13, i64 0, !13, i64 8}
!13 = !{!"any pointer", !10, i64 0}
!14 = !{!"_ZTSN4lang2cc4Node2_WE", !10, i64 0}
!15 = !{!"long", !10, i64 0}
!16 = !{!"_ZTSN6langcc11TokenBoundsE", !17, i64 0, !17, i64 4}
!17 = !{!"int", !10, i64 0}
!18 = !{!"bool", !10, i64 0}
!19 = !{!"_ZTSN6langcc14ParserAttrMaskE", !10, i64 0}
!20 = !{!"_ZTSN6langcc15ParserLookaheadE", !10, i64 0}
!21 = !{!6, !18, i64 88}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!6, !15, i64 96}
!25 = !{i64 0, i64 16, !26}
!26 = !{!10, !10, i64 0}


; Effective O3 passes: GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass