; 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.45" = 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.27" = type { ptr, ptr }
%"struct.langcc::rc_ptr.21" = type { ptr, ptr }
%"struct.lang::cc::Node::StructDeclDef::Def::_T" = type { %"struct.lang::cc::Node::StructDeclDef::_T.base", %"struct.langcc::Option::_T.413", %"struct.langcc::rc_ptr.414" }
%"struct.lang::cc::Node::StructDeclDef::_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 }
%"struct.langcc::TokenBounds" = type { i32, i32 }
%"struct.langcc::ParserAttrMask" = type { [16 x i8] }
%"struct.langcc::ParserLookahead" = type { [8 x i16] }
%"struct.langcc::Option::_T.413" = type { i32, [16 x i8] }
%"struct.langcc::rc_ptr.414" = 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_ptrIN4lang2cc4Node5Entry2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6langcc6Option2_TINS_6rc_ptrINS_3VecINS2_IN4lang2cc4Node4Expr2_TEEEEEEEE7is_someEv(ptr noundef nonnull align 4 dereferenceable(20)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6Option2_TINS_6rc_ptrINS_3VecINS2_IN4lang2cc4Node4Expr2_TEEEEEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20)) #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18visit_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node13StructDeclDef3Def2_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.45", align 8
  %7 = alloca %"class.std::function.520", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca %"struct.langcc::rc_ptr.27", align 8
  %12 = alloca %"class.std::function.520", 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
  %14 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node13StructDeclDef3Def2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %15 = getelementptr inbounds %"struct.lang::cc::Node::StructDeclDef::Def::_T", ptr %14, i32 0, i32 1
  %16 = call noundef zeroext i1 @_ZNK6langcc6Option2_TINS_6rc_ptrINS_3VecINS2_IN4lang2cc4Node4Expr2_TEEEEEEEE7is_someEv(ptr noundef nonnull align 4 dereferenceable(20) %15)
  br i1 %16, label %17, label %48

17:                                               ; preds = %2
  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 %18

18:                                               ; preds = %35, %17
  %19 = load i64, ptr %5, align 8, !tbaa !9
  %20 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node13StructDeclDef3Def2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %21 = getelementptr inbounds %"struct.lang::cc::Node::StructDeclDef::Def::_T", ptr %20, i32 0, i32 1
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6Option2_TINS_6rc_ptrINS_3VecINS2_IN4lang2cc4Node4Expr2_TEEEEEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20) %21)
  %23 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Expr2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
  %24 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang2cc4Node4Expr2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %23)
  %25 = icmp slt i64 %19, %24
  br i1 %25, label %26, label %47

26:                                               ; preds = %18
  %27 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node13StructDeclDef3Def2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %28 = getelementptr inbounds %"struct.lang::cc::Node::StructDeclDef::Def::_T", ptr %27, i32 0, i32 1
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6Option2_TINS_6rc_ptrINS_3VecINS2_IN4lang2cc4Node4Expr2_TEEEEEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20) %28)
  %30 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Expr2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
  %31 = load i64, ptr %5, align 8, !tbaa !9
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang2cc4Node4Expr2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %30, i64 noundef %31)
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %32)
  invoke void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang2cc4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %33 unwind label %38

33:                                               ; preds = %26
  invoke void @_Z18visit_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef %6, ptr noundef %7)
          to label %34 unwind label %42

34:                                               ; preds = %33
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %35

35:                                               ; preds = %34
  %36 = load i64, ptr %5, align 8, !tbaa !9
  %37 = add nsw i64 %36, 1
  store i64 %37, ptr %5, align 8, !tbaa !9
  br label %18, !llvm.loop !11

38:                                               ; preds = %26
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %8, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %9, align 4
  br label %46

42:                                               ; preds = %33
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %8, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %9, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %46

46:                                               ; preds = %42, %38
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %83

47:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %48

48:                                               ; preds = %47, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !9
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %49

49:                                               ; preds = %64, %48
  %50 = load i64, ptr %10, align 8, !tbaa !9
  %51 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node13StructDeclDef3Def2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %52 = getelementptr inbounds %"struct.lang::cc::Node::StructDeclDef::Def::_T", ptr %51, i32 0, i32 2
  %53 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node5Entry2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %52)
  %54 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang2cc4Node5Entry2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %53)
  %55 = icmp slt i64 %50, %54
  br i1 %55, label %56, label %76

56:                                               ; preds = %49
  %57 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node13StructDeclDef3Def2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %58 = getelementptr inbounds %"struct.lang::cc::Node::StructDeclDef::Def::_T", ptr %57, i32 0, i32 2
  %59 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node5Entry2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %58)
  %60 = load i64, ptr %10, align 8, !tbaa !9
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang2cc4Node5Entry2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %59, i64 noundef %60)
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Entry2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %61)
  invoke void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang2cc4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %62 unwind label %67

62:                                               ; preds = %56
  invoke void @_Z18visit_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node5Entry2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef %11, ptr noundef %12)
          to label %63 unwind label %71

63:                                               ; preds = %62
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Entry2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br label %64

64:                                               ; preds = %63
  %65 = load i64, ptr %10, align 8, !tbaa !9
  %66 = add nsw i64 %65, 1
  store i64 %66, ptr %10, align 8, !tbaa !9
  br label %49, !llvm.loop !13

67:                                               ; preds = %56
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %8, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %9, align 4
  br label %75

71:                                               ; preds = %62
  %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 @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %75

75:                                               ; preds = %71, %67
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Entry2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br label %82

76:                                               ; preds = %49
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEEC2INS3_13StructDeclDef3Def2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISB_EE(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %0)
  invoke void @_ZNKSt8functionIFvN6langcc6rc_ptrIN4lang2cc4Node2_TEEEEEclES6_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %13)
          to label %77 unwind label %78

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

78:                                               ; preds = %76
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %8, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %9, align 4
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  br label %82

82:                                               ; preds = %78, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %83

83:                                               ; preds = %82, %46
  %84 = load ptr, ptr %8, align 8
  %85 = load i32, ptr %9, align 4
  %86 = insertvalue { ptr, i32 } poison, ptr %84, 0
  %87 = insertvalue { ptr, i32 } %86, i32 %85, 1
  resume { ptr, i32 } %87
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang2cc4Node5Entry2_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_ptrIN4lang2cc4Node5Entry2_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_ptrIN4lang2cc4Node5Entry2_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_ptrIN4lang2cc4Node2_TEEC2INS3_13StructDeclDef3Def2_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 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 = { 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 #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"}
!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.45" = 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.27" = 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_ptrIN4lang2cc4Node5Entry2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

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

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

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

; 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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Expr2_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_ptrIN4lang2cc4Node4Expr2_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_ptrIN4lang2cc4Node4Expr2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6langcc6Option2_TINS_6rc_ptrINS_3VecINS2_IN4lang2cc4Node4Expr2_TEEEEEEEE7is_someEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6Option2_TINS_6rc_ptrINS_3VecINS2_IN4lang2cc4Node4Expr2_TEEEEEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18visit_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node13StructDeclDef3Def2_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.45", align 8
  %4 = alloca %"class.std::function.520", align 8
  %5 = alloca %"struct.langcc::rc_ptr.27", align 8
  %6 = alloca %"class.std::function.520", align 8
  %7 = alloca %"struct.langcc::rc_ptr.21", align 8
  %8 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node13StructDeclDef3Def2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %9 = getelementptr inbounds i8, ptr %8, i64 140
  %10 = tail call noundef zeroext i1 @_ZNK6langcc6Option2_TINS_6rc_ptrINS_3VecINS2_IN4lang2cc4Node4Expr2_TEEEEEEEE7is_someEv(ptr noundef nonnull align 4 dereferenceable(20) %9)
  br i1 %10, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %2
  %11 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node13StructDeclDef3Def2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %12 = getelementptr inbounds i8, ptr %11, i64 140
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6Option2_TINS_6rc_ptrINS_3VecINS2_IN4lang2cc4Node4Expr2_TEEEEEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20) %12)
  %14 = tail call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Expr2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
  %15 = tail call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang2cc4Node4Expr2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %14)
  %16 = icmp sgt i64 %15, 0
  br i1 %16, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader, %23
  %.01218 = phi i64 [ %24, %23 ], [ 0, %.preheader ]
  %17 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node13StructDeclDef3Def2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %18 = getelementptr inbounds i8, ptr %17, i64 140
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6Option2_TINS_6rc_ptrINS_3VecINS2_IN4lang2cc4Node4Expr2_TEEEEEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20) %18)
  %20 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Expr2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang2cc4Node4Expr2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %20, i64 noundef %.01218)
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %21)
  invoke void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang2cc4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %22 unwind label %31

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

23:                                               ; preds = %22
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node4Expr2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  %24 = add nuw nsw i64 %.01218, 1
  %25 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node13StructDeclDef3Def2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %26 = getelementptr inbounds i8, ptr %25, i64 140
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6Option2_TINS_6rc_ptrINS_3VecINS2_IN4lang2cc4Node4Expr2_TEEEEEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20) %26)
  %28 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node4Expr2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
  %29 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang2cc4Node4Expr2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %28)
  %30 = icmp slt i64 %24, %29
  br i1 %30, label %.lr.ph, label %.loopexit, !llvm.loop !5

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

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

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

.loopexit:                                        ; preds = %23, %.preheader, %2
  %36 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node13StructDeclDef3Def2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %37 = getelementptr inbounds i8, ptr %36, i64 160
  %38 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node5Entry2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %37)
  %39 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang2cc4Node5Entry2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %38)
  %40 = icmp sgt i64 %39, 0
  br i1 %40, label %.lr.ph20, label %._crit_edge

.lr.ph20:                                         ; preds = %.loopexit, %46
  %.019 = phi i64 [ %47, %46 ], [ 0, %.loopexit ]
  %41 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node13StructDeclDef3Def2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %42 = getelementptr inbounds i8, ptr %41, i64 160
  %43 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node5Entry2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %42)
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang2cc4Node5Entry2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %43, i64 noundef %.019)
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Entry2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %44)
  invoke void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang2cc4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %45 unwind label %53

45:                                               ; preds = %.lr.ph20
  invoke void @_Z18visit_lang_cc_NodeN6langcc6rc_ptrIN4lang2cc4Node5Entry2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %46 unwind label %55

46:                                               ; preds = %45
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Entry2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  %47 = add nuw nsw i64 %.019, 1
  %48 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang2cc4Node13StructDeclDef3Def2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %49 = getelementptr inbounds i8, ptr %48, i64 160
  %50 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node5Entry2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %49)
  %51 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang2cc4Node5Entry2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %50)
  %52 = icmp slt i64 %47, %51
  br i1 %52, label %.lr.ph20, label %._crit_edge, !llvm.loop !7

53:                                               ; preds = %.lr.ph20
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %57

55:                                               ; preds = %45
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  br label %57

57:                                               ; preds = %55, %53
  %.pn = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ]
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node5Entry2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  br label %61

._crit_edge:                                      ; preds = %46, %.loopexit
  call void @_ZN6langcc6rc_ptrIN4lang2cc4Node2_TEEC2INS3_13StructDeclDef3Def2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISB_EE(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %0)
  invoke void @_ZNKSt8functionIFvN6langcc6rc_ptrIN4lang2cc4Node2_TEEEEEclES6_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull %7)
          to label %58 unwind label %59

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

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

61:                                               ; preds = %57, %59, %35
  %.pn15.pn = phi { ptr, i32 } [ %.pn15, %35 ], [ %.pn, %57 ], [ %60, %59 ]
  resume { ptr, i32 } %.pn15.pn
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang2cc4Node5Entry2_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_ptrIN4lang2cc4Node5Entry2_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_ptrIN4lang2cc4Node5Entry2_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_ptrIN4lang2cc4Node5Entry2_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_ptrIN4lang2cc4Node2_TEEC2INS3_13StructDeclDef3Def2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISB_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 = { 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 #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"}
!7 = distinct !{!7, !6}


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