; LLVM IR from jzimmerman/langcc :: gen/meta (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.23" = type { ptr, ptr }
%"class.std::function.495" = 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.24" = type { ptr, ptr }
%"struct.langcc::rc_ptr.21" = type { ptr, ptr }
%"struct.lang::meta::Node::Lang::_T" = type { %"struct.lang::meta::Node::_T", %"struct.langcc::rc_ptr.131", %"struct.langcc::rc_ptr.132" }
%"struct.lang::meta::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.131" = type { ptr, ptr }
%"struct.langcc::rc_ptr.132" = 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_ptrIN4lang4meta4Node4Decl2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang4meta4Node2_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 @_Z20visit_lang_meta_NodeN6langcc6rc_ptrIN4lang4meta4Node6Stanza2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z20visit_lang_meta_NodeN6langcc6rc_ptrIN4lang4meta4Node4Lang2_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.23", align 8
  %7 = alloca %"class.std::function.495", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca %"struct.langcc::rc_ptr.24", align 8
  %12 = alloca %"class.std::function.495", align 8
  %13 = 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) #5
  store i64 0, ptr %5, align 8, !tbaa !9
  store i64 0, ptr %5, align 8, !tbaa !9
  br label %14

14:                                               ; preds = %29, %2
  %15 = load i64, ptr %5, align 8, !tbaa !9
  %16 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node4Lang2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %17 = getelementptr inbounds %"struct.lang::meta::Node::Lang::_T", ptr %16, i32 0, i32 1
  %18 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node4Decl2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %19 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang4meta4Node4Decl2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %18)
  %20 = icmp slt i64 %15, %19
  br i1 %20, label %21, label %41

21:                                               ; preds = %14
  %22 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node4Lang2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %23 = getelementptr inbounds %"struct.lang::meta::Node::Lang::_T", ptr %22, i32 0, i32 1
  %24 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node4Decl2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %25 = load i64, ptr %5, align 8, !tbaa !9
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang4meta4Node4Decl2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %24, i64 noundef %25)
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node4Decl2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %26)
  invoke void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang4meta4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %27 unwind label %32

27:                                               ; preds = %21
  invoke void @_Z20visit_lang_meta_NodeN6langcc6rc_ptrIN4lang4meta4Node4Decl2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef %6, ptr noundef %7)
          to label %28 unwind label %36

28:                                               ; preds = %27
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node4Decl2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %29

29:                                               ; preds = %28
  %30 = load i64, ptr %5, align 8, !tbaa !9
  %31 = add nsw i64 %30, 1
  store i64 %31, ptr %5, align 8, !tbaa !9
  br label %14, !llvm.loop !11

32:                                               ; preds = %21
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %8, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %9, align 4
  br label %40

36:                                               ; preds = %27
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %8, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %9, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  br label %40

40:                                               ; preds = %36, %32
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node4Decl2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %76

41:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !9
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %42

42:                                               ; preds = %57, %41
  %43 = load i64, ptr %10, align 8, !tbaa !9
  %44 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node4Lang2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %45 = getelementptr inbounds %"struct.lang::meta::Node::Lang::_T", ptr %44, i32 0, i32 2
  %46 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node6Stanza2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %45)
  %47 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang4meta4Node6Stanza2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %46)
  %48 = icmp slt i64 %43, %47
  br i1 %48, label %49, label %69

49:                                               ; preds = %42
  %50 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node4Lang2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %51 = getelementptr inbounds %"struct.lang::meta::Node::Lang::_T", ptr %50, i32 0, i32 2
  %52 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node6Stanza2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %51)
  %53 = load i64, ptr %10, align 8, !tbaa !9
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang4meta4Node6Stanza2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %52, i64 noundef %53)
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node6Stanza2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %54)
  invoke void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang4meta4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %55 unwind label %60

55:                                               ; preds = %49
  invoke void @_Z20visit_lang_meta_NodeN6langcc6rc_ptrIN4lang4meta4Node6Stanza2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef %11, ptr noundef %12)
          to label %56 unwind label %64

56:                                               ; preds = %55
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node6Stanza2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  br label %57

57:                                               ; preds = %56
  %58 = load i64, ptr %10, align 8, !tbaa !9
  %59 = add nsw i64 %58, 1
  store i64 %59, ptr %10, align 8, !tbaa !9
  br label %42, !llvm.loop !13

60:                                               ; preds = %49
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %8, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %9, align 4
  br label %68

64:                                               ; preds = %55
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %8, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %9, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  br label %68

68:                                               ; preds = %64, %60
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node6Stanza2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  br label %75

69:                                               ; preds = %42
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node2_TEEC2INS3_4Lang2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISA_EE(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %0)
  invoke void @_ZNKSt8functionIFvN6langcc6rc_ptrIN4lang4meta4Node2_TEEEEEclES6_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %13)
          to label %70 unwind label %71

70:                                               ; preds = %69
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void

71:                                               ; preds = %69
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %8, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %9, align 4
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  br label %75

75:                                               ; preds = %71, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %76

76:                                               ; preds = %75, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %77

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang4meta4Node4Decl2_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_ptrIN4lang4meta4Node4Decl2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang4meta4Node6Stanza2_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_ptrIN4lang4meta4Node6Stanza2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4meta4Node2_TEEC2INS3_4Lang2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISA_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 = { 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 = { 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 = !{!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 = distinct !{!13, !12}


; 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.23" = type { ptr, ptr }
%"class.std::function.495" = 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.24" = type { ptr, ptr }
%"struct.langcc::rc_ptr.21" = type { ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4meta4Node6Stanza2_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_ptrIN4lang4meta4Node4Lang2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvN6langcc6rc_ptrIN4lang4meta4Node2_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_ptrIN4lang4meta4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang4meta4Node2_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 @_Z20visit_lang_meta_NodeN6langcc6rc_ptrIN4lang4meta4Node6Stanza2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z20visit_lang_meta_NodeN6langcc6rc_ptrIN4lang4meta4Node4Lang2_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.23", align 8
  %4 = alloca %"class.std::function.495", align 8
  %5 = alloca %"struct.langcc::rc_ptr.24", align 8
  %6 = alloca %"class.std::function.495", align 8
  %7 = alloca %"struct.langcc::rc_ptr.21", align 8
  %8 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node4Lang2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %9 = getelementptr inbounds i8, ptr %8, i64 136
  %10 = tail call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node4Decl2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %11 = tail call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang4meta4Node4Decl2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %10)
  %12 = icmp sgt i64 %11, 0
  br i1 %12, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %23, %2
  %13 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node4Lang2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %14 = getelementptr inbounds i8, ptr %13, i64 152
  %15 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node6Stanza2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
  %16 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang4meta4Node6Stanza2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %15)
  %17 = icmp sgt i64 %16, 0
  br i1 %17, label %.lr.ph20, label %._crit_edge

.lr.ph:                                           ; preds = %2, %23
  %.01218 = phi i64 [ %24, %23 ], [ 0, %2 ]
  %18 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node4Lang2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %19 = getelementptr inbounds i8, ptr %18, i64 136
  %20 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node4Decl2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang4meta4Node4Decl2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %20, i64 noundef %.01218)
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node4Decl2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %21)
  invoke void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang4meta4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %22 unwind label %30

22:                                               ; preds = %.lr.ph
  invoke void @_Z20visit_lang_meta_NodeN6langcc6rc_ptrIN4lang4meta4Node4Decl2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef nonnull %3, ptr noundef nonnull %4)
          to label %23 unwind label %32

23:                                               ; preds = %22
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node4Decl2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  %24 = add nuw nsw i64 %.01218, 1
  %25 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node4Lang2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %26 = getelementptr inbounds i8, ptr %25, i64 136
  %27 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node4Decl2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
  %28 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang4meta4Node4Decl2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %27)
  %29 = icmp slt i64 %24, %28
  br i1 %29, label %.lr.ph, label %.preheader, !llvm.loop !5

30:                                               ; preds = %.lr.ph
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %34

32:                                               ; preds = %22
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  br label %34

34:                                               ; preds = %32, %30
  %.pn15 = phi { ptr, i32 } [ %33, %32 ], [ %31, %30 ]
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node4Decl2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  br label %55

.lr.ph20:                                         ; preds = %.preheader, %40
  %.019 = phi i64 [ %41, %40 ], [ 0, %.preheader ]
  %35 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node4Lang2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %36 = getelementptr inbounds i8, ptr %35, i64 152
  %37 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node6Stanza2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %36)
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang4meta4Node6Stanza2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %37, i64 noundef %.019)
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node6Stanza2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %38)
  invoke void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang4meta4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %39 unwind label %47

39:                                               ; preds = %.lr.ph20
  invoke void @_Z20visit_lang_meta_NodeN6langcc6rc_ptrIN4lang4meta4Node6Stanza2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %40 unwind label %49

40:                                               ; preds = %39
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node6Stanza2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  %41 = add nuw nsw i64 %.019, 1
  %42 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node4Lang2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %43 = getelementptr inbounds i8, ptr %42, i64 152
  %44 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node6Stanza2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %43)
  %45 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang4meta4Node6Stanza2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %44)
  %46 = icmp slt i64 %41, %45
  br i1 %46, label %.lr.ph20, label %._crit_edge, !llvm.loop !7

47:                                               ; preds = %.lr.ph20
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %51

49:                                               ; preds = %39
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  br label %51

51:                                               ; preds = %49, %47
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ]
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node6Stanza2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  br label %55

._crit_edge:                                      ; preds = %40, %.preheader
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node2_TEEC2INS3_4Lang2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISA_EE(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %0)
  invoke void @_ZNKSt8functionIFvN6langcc6rc_ptrIN4lang4meta4Node2_TEEEEEclES6_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull %7)
          to label %52 unwind label %53

52:                                               ; preds = %._crit_edge
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  ret void

53:                                               ; preds = %._crit_edge
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  br label %55

55:                                               ; preds = %51, %53, %34
  %.pn15.pn = phi { ptr, i32 } [ %.pn15, %34 ], [ %.pn, %51 ], [ %54, %53 ]
  resume { ptr, i32 } %.pn15.pn
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node4Decl2_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_ptrIN4lang4meta4Node4Decl2_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_ptrIN4lang4meta4Node4Decl2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node6Stanza2_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_ptrIN4lang4meta4Node6Stanza2_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_ptrIN4lang4meta4Node6Stanza2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4meta4Node2_TEEC2INS3_4Lang2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISA_EE(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 @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { 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 = { 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 = distinct !{!7, !6}


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