; 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.28" = 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.30" = type { ptr, ptr }
%"struct.langcc::rc_ptr.21" = type { ptr, ptr }
%"struct.lang::meta::Node::LexerDecl::Mode::_T" = type { %"struct.lang::meta::Node::LexerDecl::_T.base", %"struct.langcc::StrSlice", %"struct.langcc::Option::_T.464", i8, %"struct.langcc::rc_ptr.465" }
%"struct.lang::meta::Node::LexerDecl::_T.base" = type <{ %"struct.lang::meta::Node::_T", i32 }>
%"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::StrSlice" = type { %"struct.langcc::rc_ptr.161", i64, i64 }
%"struct.langcc::rc_ptr.161" = type { ptr, ptr }
%"struct.langcc::Option::_T.464" = type { i32, [16 x i8] }
%"struct.langcc::rc_ptr.465" = 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_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4meta4Node13LexerModeCase2_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_ptrIN4lang4meta4Node9LexerDecl4Mode2_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 @_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_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef, ptr noundef) #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z20visit_lang_meta_NodeN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode2_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 %"struct.langcc::rc_ptr.28", align 8
  %6 = alloca %"class.std::function.495", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %"struct.langcc::rc_ptr.30", align 8
  %11 = alloca %"class.std::function.495", align 8
  %12 = 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
  %13 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %14 = getelementptr inbounds %"struct.lang::meta::Node::LexerDecl::Mode::_T", ptr %13, i32 0, i32 2
  %15 = call noundef zeroext i1 @_ZNK6langcc6Option2_TINS_6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEEE7is_someEv(ptr noundef nonnull align 4 dereferenceable(20) %14)
  br i1 %15, label %16, label %31

16:                                               ; preds = %2
  %17 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %18 = getelementptr inbounds %"struct.lang::meta::Node::LexerDecl::Mode::_T", ptr %17, i32 0, i32 2
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6Option2_TINS_6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20) %18)
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %19)
  invoke void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang4meta4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %20 unwind label %22

20:                                               ; preds = %16
  invoke void @_Z20visit_lang_meta_NodeN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef %5, ptr noundef %6)
          to label %21 unwind label %26

21:                                               ; preds = %20
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  br label %31

22:                                               ; preds = %16
  %23 = landingpad { ptr, i32 }
          cleanup
  %24 = extractvalue { ptr, i32 } %23, 0
  store ptr %24, ptr %7, align 8
  %25 = extractvalue { ptr, i32 } %23, 1
  store i32 %25, ptr %8, align 4
  br label %30

26:                                               ; preds = %20
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %7, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %8, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br label %30

30:                                               ; preds = %26, %22
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  br label %66

31:                                               ; preds = %21, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !9
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %32

32:                                               ; preds = %47, %31
  %33 = load i64, ptr %9, align 8, !tbaa !9
  %34 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %35 = getelementptr inbounds %"struct.lang::meta::Node::LexerDecl::Mode::_T", ptr %34, i32 0, i32 4
  %36 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node13LexerModeCase2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %35)
  %37 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang4meta4Node13LexerModeCase2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %36)
  %38 = icmp slt i64 %33, %37
  br i1 %38, label %39, label %59

39:                                               ; preds = %32
  %40 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %41 = getelementptr inbounds %"struct.lang::meta::Node::LexerDecl::Mode::_T", ptr %40, i32 0, i32 4
  %42 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node13LexerModeCase2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %41)
  %43 = load i64, ptr %9, align 8, !tbaa !9
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang4meta4Node13LexerModeCase2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %42, i64 noundef %43)
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node13LexerModeCase2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %44)
  invoke void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang4meta4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %45 unwind label %50

45:                                               ; preds = %39
  invoke void @_Z20visit_lang_meta_NodeN6langcc6rc_ptrIN4lang4meta4Node13LexerModeCase2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef %10, ptr noundef %11)
          to label %46 unwind label %54

46:                                               ; preds = %45
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node13LexerModeCase2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  br label %47

47:                                               ; preds = %46
  %48 = load i64, ptr %9, align 8, !tbaa !9
  %49 = add nsw i64 %48, 1
  store i64 %49, ptr %9, align 8, !tbaa !9
  br label %32, !llvm.loop !11

50:                                               ; preds = %39
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %7, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %8, align 4
  br label %58

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

58:                                               ; preds = %54, %50
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node13LexerModeCase2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  br label %65

59:                                               ; preds = %32
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node2_TEEC2INS3_9LexerDecl4Mode2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISB_EE(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %0)
  invoke void @_ZNKSt8functionIFvN6langcc6rc_ptrIN4lang4meta4Node2_TEEEEEclES6_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %12)
          to label %60 unwind label %61

60:                                               ; preds = %59
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret void

61:                                               ; preds = %59
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %7, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %8, align 4
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  br label %65

65:                                               ; preds = %61, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %66

66:                                               ; preds = %65, %30
  %67 = load ptr, ptr %7, align 8
  %68 = load i32, ptr %8, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6langcc6Option2_TINS_6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEEE7is_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_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20)) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEC2ERKS8_(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_ptrIN4lang4meta4Node2_TEEC2INS3_9LexerDecl4Mode2_TETnPNSt9enable_ifIXsr3std10is_base_ofIS4_T_EE5valueEvE4typeELPv0EEERKNS0_ISB_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

%"struct.langcc::rc_ptr.28" = type { ptr, ptr }
%"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.30" = 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_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4meta4Node13LexerModeCase2_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_ptrIN4lang4meta4Node9LexerDecl4Mode2_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 @_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_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang4meta4Node13LexerModeCase2_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_ptrIN4lang4meta4Node13LexerModeCase2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z20visit_lang_meta_NodeN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode2_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.28", align 8
  %4 = alloca %"class.std::function.495", align 8
  %5 = alloca %"struct.langcc::rc_ptr.30", 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_ptrIN4lang4meta4Node9LexerDecl4Mode2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %9 = getelementptr inbounds i8, ptr %8, i64 176
  %10 = tail call noundef zeroext i1 @_ZNK6langcc6Option2_TINS_6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEEE7is_someEv(ptr noundef nonnull align 4 dereferenceable(20) %9)
  br i1 %10, label %11, label %22

11:                                               ; preds = %2
  %12 = tail call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %13 = getelementptr inbounds i8, ptr %12, i64 176
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc6Option2_TINS_6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20) %13)
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %14)
  invoke void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang4meta4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %15 unwind label %17

15:                                               ; preds = %11
  invoke void @_Z20visit_lang_meta_NodeN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef nonnull %3, ptr noundef nonnull %4)
          to label %16 unwind label %19

16:                                               ; preds = %15
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  br label %22

17:                                               ; preds = %11
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %21

19:                                               ; preds = %15
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %21

21:                                               ; preds = %19, %17
  %.pn = phi { ptr, i32 } [ %20, %19 ], [ %18, %17 ]
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  br label %48

22:                                               ; preds = %16, %2
  %23 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %24 = getelementptr inbounds i8, ptr %23, i64 200
  %25 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node13LexerModeCase2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  %26 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang4meta4Node13LexerModeCase2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %25)
  %27 = icmp sgt i64 %26, 0
  br i1 %27, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %22, %33
  %.014 = phi i64 [ %34, %33 ], [ 0, %22 ]
  %28 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %29 = getelementptr inbounds i8, ptr %28, i64 200
  %30 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node13LexerModeCase2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6langcc3VecINS_6rc_ptrIN4lang4meta4Node13LexerModeCase2_TEEEE12at_uncheckedEl(ptr noundef nonnull align 8 dereferenceable(64) %30, i64 noundef %.014)
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node13LexerModeCase2_TEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %31)
  invoke void @_ZNSt8functionIFvN6langcc6rc_ptrIN4lang4meta4Node2_TEEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %32 unwind label %40

32:                                               ; preds = %.lr.ph
  invoke void @_Z20visit_lang_meta_NodeN6langcc6rc_ptrIN4lang4meta4Node13LexerModeCase2_TEEESt8functionIFvNS0_INS3_2_TEEEEE(ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %33 unwind label %42

33:                                               ; preds = %32
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node13LexerModeCase2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  %34 = add nuw nsw i64 %.014, 1
  %35 = call noundef ptr @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode2_TEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %36 = getelementptr inbounds i8, ptr %35, i64 200
  %37 = call noundef ptr @_ZN6langcc6rc_ptrINS_3VecINS0_IN4lang4meta4Node13LexerModeCase2_TEEEEEEptEv(ptr noundef nonnull align 8 dereferenceable(16) %36)
  %38 = call noundef i64 @_ZNK6langcc3VecINS_6rc_ptrIN4lang4meta4Node13LexerModeCase2_TEEEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(64) %37)
  %39 = icmp slt i64 %34, %38
  br i1 %39, label %.lr.ph, label %._crit_edge, !llvm.loop !5

40:                                               ; preds = %.lr.ph
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %44

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

44:                                               ; preds = %42, %40
  %.pn10 = phi { ptr, i32 } [ %43, %42 ], [ %41, %40 ]
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node13LexerModeCase2_TEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  br label %48

._crit_edge:                                      ; preds = %33, %22
  call void @_ZN6langcc6rc_ptrIN4lang4meta4Node2_TEEC2INS3_9LexerDecl4Mode2_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_ptrIN4lang4meta4Node2_TEEEEEclES6_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull %7)
          to label %45 unwind label %46

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

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

48:                                               ; preds = %44, %46, %21
  %.pn10.pn.pn = phi { ptr, i32 } [ %.pn, %21 ], [ %.pn10, %44 ], [ %47, %46 ]
  resume { ptr, i32 } %.pn10.pn.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6langcc6Option2_TINS_6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEEE7is_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_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEEE7as_someEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN6langcc6rc_ptrIN4lang4meta4Node9LexerDecl4Mode7ws_sig_2_TEEC2ERKS8_(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_ptrIN4lang4meta4Node2_TEEC2INS3_9LexerDecl4Mode2_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 = { 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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


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