; 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.37" = type { ptr, ptr }
%"class.std::function.520" = 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::rc_ptr.21" = type { ptr, ptr }
%"struct.lang::cc::Node::Decl::UsingAlias::tmpl::item::_T" = type { %"struct.lang::cc::Node::_T", %"struct.langcc::rc_ptr.519" }
%"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 }
%"struct.langcc::TokenBounds" = type { i32, i32 }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"struct.langcc::rc_ptr.519" = 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: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z18visit_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18visit_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef %0, ptr noundef %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"struct.langcc::rc_ptr.37", align 8
  %7 = alloca %"class.std::function.520", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.langcc::rc_ptr.21", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !9
  store i64 0, ptr %5, align 8, !tbaa !9
  br label %11

11:                                               ; preds = %26, %2
  %12 = load i64, ptr %5, align 8, !tbaa !9
  %13 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %14 = getelementptr inbounds %"struct.lang::cc::Node::Decl::UsingAlias::tmpl::item::_T", ptr %13, i32 0, i32 1
  %15 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
  %16 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %15)
  %17 = icmp slt i64 %12, %16
  br i1 %17, label %18, label %38

18:                                               ; preds = %11
  %19 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %20 = getelementptr inbounds %"struct.lang::cc::Node::Decl::UsingAlias::tmpl::item::_T", ptr %19, i32 0, i32 1
  %21 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %20)
  %22 = load i64, ptr %5, align 8, !tbaa !9
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %21, i64 noundef %22)
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEC2ERKSB_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %23)
  invoke void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang2cc4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %24 unwind label %29

24:                                               ; preds = %18
  invoke void @_Z18visit_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef %6, ptr noundef %7)
          to label %25 unwind label %33

25:                                               ; preds = %24
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %26

26:                                               ; preds = %25
  %27 = load i64, ptr %5, align 8, !tbaa !9
  %28 = add nsw i64 %27, 1
  store i64 %28, ptr %5, align 8, !tbaa !9
  br label %11, !llvm.loop !11

29:                                               ; preds = %18
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %8, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %9, align 4
  br label %37

33:                                               ; preds = %24
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %8, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %9, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %37

37:                                               ; preds = %33, %29
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %44

38:                                               ; preds = %11
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEEC2INS3_4Decl10UsingAlias4tmpl4item2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISD_EE(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %0)
  invoke void @_ZNKSt8functionIFvN6langcc6rc_ptrIN4lang2cc4Node2_TEEEEEclES6_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %10)
          to label %39 unwind label %40

39:                                               ; preds = %38
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void

40:                                               ; preds = %38
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %8, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %9, align 4
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br label %44

44:                                               ; preds = %40, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %45

45:                                               ; preds = %44
  %46 = load ptr, ptr %8, align 8
  %47 = load i32, ptr %9, align 4
  %48 = insertvalue { ptr, i32 } poison, ptr %46, 0
  %49 = insertvalue { ptr, i32 } %48, i32 %47, 1
  resume { ptr, i32 } %49
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEEC2INS3_4Decl10UsingAlias4tmpl4item2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISD_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; 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.37" = type { ptr, ptr }
%"class.std::function.520" = 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::rc_ptr.21" = type { ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang2cc4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvN6langcc6rc_ptrIN4lang2cc4Node2_TEEEEEclES6_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z18visit_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18visit_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef nonnull %0, ptr noundef %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.langcc::rc_ptr.37", align 8
  %4 = alloca %"class.std::function.520", align 8
  %5 = alloca %"struct.langcc::rc_ptr.21", align 8
  %6 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %7 = getelementptr inbounds i8, ptr %6, i64 136
  %8 = tail call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %9 = tail call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %8)
  %10 = icmp sgt i64 %9, 0
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2, %16
  %.069 = phi i64 [ %17, %16 ], [ 0, %2 ]
  %11 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %12 = getelementptr inbounds i8, ptr %11, i64 136
  %13 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %13, i64 noundef %.069)
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEC2ERKSB_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %14)
  invoke void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang2cc4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %15 unwind label %23

15:                                               ; preds = %.lr.ph
  invoke void @_Z18visit_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef nonnull %3, ptr noundef nonnull %4)
          to label %16 unwind label %25

16:                                               ; preds = %15
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  %17 = add nuw nsw i64 %.069, 1
  %18 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %19 = getelementptr inbounds i8, ptr %18, i64 136
  %20 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %21 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %20)
  %22 = icmp slt i64 %17, %21
  br i1 %22, label %.lr.ph, label %._crit_edge, !llvm.loop !5

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

25:                                               ; preds = %15
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br label %27

27:                                               ; preds = %25, %23
  %.pn = phi { ptr, i32 } [ %26, %25 ], [ %24, %23 ]
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Decl10UsingAlias4tmpl4item4args4item2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  br label %31

._crit_edge:                                      ; preds = %16, %2
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEEC2INS3_4Decl10UsingAlias4tmpl4item2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISD_EE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %0)
  invoke void @_ZNKSt8functionIFvN6langcc6rc_ptrIN4lang2cc4Node2_TEEEEEclES6_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull %5)
          to label %28 unwind label %29

28:                                               ; preds = %._crit_edge
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  ret void

29:                                               ; preds = %._crit_edge
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  br label %31

31:                                               ; preds = %29, %27
  %.pn.pn = phi { ptr, i32 } [ %.pn, %27 ], [ %30, %29 ]
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

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

attributes #0 = { 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 #1 = { 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 #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 = { 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 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 = { 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"}


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