; LLVM IR from thepowersgang/mrustc :: src/expand/mod.ll (Z11Expand_Initv)

; 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"

%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, std::unique_ptr<ExpandDecorator>>, std::_Select1st<std::pair<const RcString, std::unique_ptr<ExpandDecorator>>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, std::unique_ptr<ExpandDecorator>>, std::_Select1st<std::pair<const RcString, std::unique_ptr<ExpandDecorator>>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, std::unique_ptr<ExpandProcMacro>>, std::_Select1st<std::pair<const RcString, std::unique_ptr<ExpandProcMacro>>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, std::unique_ptr<ExpandProcMacro>>, std::_Select1st<std::pair<const RcString, std::unique_ptr<ExpandProcMacro>>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair.10" = type { %class.RcString, %"class.std::unique_ptr" }
%class.RcString = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"struct.std::pair.24" = type { %class.RcString, %"class.std::unique_ptr.12" }
%"class.std::unique_ptr.12" = type { %"struct.std::__uniq_ptr_data.13" }
%"struct.std::__uniq_ptr_data.13" = type { %"class.std::__uniq_ptr_impl.14" }
%"class.std::__uniq_ptr_impl.14" = type { %"class.std::tuple.15" }
%"class.std::tuple.15" = type { %"struct.std::_Tuple_impl.16" }
%"struct.std::_Tuple_impl.16" = type { %"struct.std::_Head_base.19" }
%"struct.std::_Head_base.19" = type { ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair.20" = type <{ %"struct.std::_Rb_tree_iterator.22", i8, [7 x i8] }>
%"struct.std::_Rb_tree_iterator.22" = type { ptr }
%struct.DecoratorDef = type { ptr, %"class.std::__cxx11::basic_string", %"class.std::unique_ptr" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.MacroDef = type { ptr, %"class.std::__cxx11::basic_string", %"class.std::unique_ptr.12" }

@g_decorators_list = external dso_local global ptr, align 8
@g_macros_list = external dso_local global ptr, align 8
@g_decorators = external dso_local global %"class.std::map", align 8
@g_macros = external dso_local global %"class.std::map.0", align 8

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapI8RcStringSt10unique_ptrI15ExpandDecoratorSt14default_deleteIS2_EESt4lessIS0_ESaISt4pairIKS0_S5_EEE6insertIS8_IS0_S5_EEENSt9enable_ifIXsr16is_constructibleISA_T_EE5valueES8_ISt17_Rb_tree_iteratorISA_EbEE4typeEOSG_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairI8RcStringSt10unique_ptrI15ExpandDecoratorSt14default_deleteIS2_EEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.10") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8RcString12new_internedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%class.RcString) align 8, ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapI8RcStringSt10unique_ptrI15ExpandProcMacroSt14default_deleteIS2_EESt4lessIS0_ESaISt4pairIKS0_S5_EEE6insertIS8_IS0_S5_EEENSt9enable_ifIXsr16is_constructibleISA_T_EE5valueES8_ISt17_Rb_tree_iteratorISA_EbEE4typeEOSG_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairI8RcStringSt10unique_ptrI15ExpandProcMacroSt14default_deleteIS2_EEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.24") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11Expand_Initv() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.std::pair.10", align 8
  %2 = alloca %class.RcString, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca %"struct.std::pair.24", align 8
  %7 = alloca %class.RcString, align 8
  %8 = alloca %"struct.std::pair.20", align 8
  call void @_Z18Expand_init_assertv()
  call void @_Z23Expand_init_std_preludev()
  call void @_Z17Expand_init_panicv()
  br label %9

9:                                                ; preds = %19, %0
  %10 = load ptr, ptr @g_decorators_list, align 8, !tbaa !5
  %11 = icmp ne ptr %10, null
  br i1 %11, label %12, label %36

12:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 16, ptr %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  %13 = load ptr, ptr @g_decorators_list, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.DecoratorDef, ptr %13, i32 0, i32 1
  call void @_ZN8RcString12new_internedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%class.RcString) align 8 %2, ptr noundef nonnull align 8 dereferenceable(32) %14)
  %15 = load ptr, ptr @g_decorators_list, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.DecoratorDef, ptr %15, i32 0, i32 2
  invoke void @_ZSt9make_pairI8RcStringSt10unique_ptrI15ExpandDecoratorSt14default_deleteIS2_EEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr dead_on_unwind writable sret(%"struct.std::pair.10") align 8 %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %17 unwind label %27

17:                                               ; preds = %12
  %18 = invoke { ptr, i8 } @_ZNSt3mapI8RcStringSt10unique_ptrI15ExpandDecoratorSt14default_deleteIS2_EESt4lessIS0_ESaISt4pairIKS0_S5_EEE6insertIS8_IS0_S5_EEENSt9enable_ifIXsr16is_constructibleISA_T_EE5valueES8_ISt17_Rb_tree_iteratorISA_EbEE4typeEOSG_(ptr noundef nonnull align 8 dereferenceable(48) @g_decorators, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %19 unwind label %31

19:                                               ; preds = %17
  %20 = getelementptr inbounds { ptr, i8 }, ptr %5, i32 0, i32 0
  %21 = extractvalue { ptr, i8 } %18, 0
  store ptr %21, ptr %20, align 8
  %22 = getelementptr inbounds { ptr, i8 }, ptr %5, i32 0, i32 1
  %23 = extractvalue { ptr, i8 } %18, 1
  store i8 %23, ptr %22, align 8
  call void @_ZNSt4pairI8RcStringSt10unique_ptrI15ExpandDecoratorSt14default_deleteIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #5
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %1) #5
  %24 = load ptr, ptr @g_decorators_list, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.DecoratorDef, ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  store ptr %26, ptr @g_decorators_list, align 8, !tbaa !5
  br label %9, !llvm.loop !20

27:                                               ; preds = %12
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %3, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %4, align 4
  br label %35

31:                                               ; preds = %17
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %3, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %4, align 4
  call void @_ZNSt4pairI8RcStringSt10unique_ptrI15ExpandDecoratorSt14default_deleteIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #5
  br label %35

35:                                               ; preds = %31, %27
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %1) #5
  br label %65

36:                                               ; preds = %9
  br label %37

37:                                               ; preds = %47, %36
  %38 = load ptr, ptr @g_macros_list, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %64

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %41 = load ptr, ptr @g_macros_list, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.MacroDef, ptr %41, i32 0, i32 1
  call void @_ZN8RcString12new_internedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%class.RcString) align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %42)
  %43 = load ptr, ptr @g_macros_list, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.MacroDef, ptr %43, i32 0, i32 2
  invoke void @_ZSt9make_pairI8RcStringSt10unique_ptrI15ExpandProcMacroSt14default_deleteIS2_EEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr dead_on_unwind writable sret(%"struct.std::pair.24") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %45 unwind label %55

45:                                               ; preds = %40
  %46 = invoke { ptr, i8 } @_ZNSt3mapI8RcStringSt10unique_ptrI15ExpandProcMacroSt14default_deleteIS2_EESt4lessIS0_ESaISt4pairIKS0_S5_EEE6insertIS8_IS0_S5_EEENSt9enable_ifIXsr16is_constructibleISA_T_EE5valueES8_ISt17_Rb_tree_iteratorISA_EbEE4typeEOSG_(ptr noundef nonnull align 8 dereferenceable(48) @g_macros, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %47 unwind label %59

47:                                               ; preds = %45
  %48 = getelementptr inbounds { ptr, i8 }, ptr %8, i32 0, i32 0
  %49 = extractvalue { ptr, i8 } %46, 0
  store ptr %49, ptr %48, align 8
  %50 = getelementptr inbounds { ptr, i8 }, ptr %8, i32 0, i32 1
  %51 = extractvalue { ptr, i8 } %46, 1
  store i8 %51, ptr %50, align 8
  call void @_ZNSt4pairI8RcStringSt10unique_ptrI15ExpandProcMacroSt14default_deleteIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  %52 = load ptr, ptr @g_macros_list, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.MacroDef, ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  store ptr %54, ptr @g_macros_list, align 8, !tbaa !5
  br label %37, !llvm.loop !30

55:                                               ; preds = %40
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %3, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %4, align 4
  br label %63

59:                                               ; preds = %45
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %3, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %4, align 4
  call void @_ZNSt4pairI8RcStringSt10unique_ptrI15ExpandProcMacroSt14default_deleteIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  br label %63

63:                                               ; preds = %59, %55
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  br label %65

64:                                               ; preds = %37
  ret void

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

declare void @_Z18Expand_init_assertv() #4

declare void @_Z23Expand_init_std_preludev() #4

declare void @_Z17Expand_init_panicv() #4

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind "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 = { "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, !6, i64 0}
!10 = !{!"_ZTS12DecoratorDef", !6, i64 0, !11, i64 8, !14, i64 40}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSSt10unique_ptrI15ExpandDecoratorSt14default_deleteIS0_EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_dataI15ExpandDecoratorSt14default_deleteIS0_ELb1ELb1EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_implI15ExpandDecoratorSt14default_deleteIS0_EE", !17, i64 0}
!17 = !{!"_ZTSSt5tupleIJP15ExpandDecoratorSt14default_deleteIS0_EEE", !18, i64 0}
!18 = !{!"_ZTSSt11_Tuple_implILm0EJP15ExpandDecoratorSt14default_deleteIS0_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_Head_baseILm0EP15ExpandDecoratorLb0EE", !6, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTS8MacroDef", !6, i64 0, !11, i64 8, !24, i64 40}
!24 = !{!"_ZTSSt10unique_ptrI15ExpandProcMacroSt14default_deleteIS0_EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_dataI15ExpandProcMacroSt14default_deleteIS0_ELb1ELb1EE", !26, i64 0}
!26 = !{!"_ZTSSt15__uniq_ptr_implI15ExpandProcMacroSt14default_deleteIS0_EE", !27, i64 0}
!27 = !{!"_ZTSSt5tupleIJP15ExpandProcMacroSt14default_deleteIS0_EEE", !28, i64 0}
!28 = !{!"_ZTSSt11_Tuple_implILm0EJP15ExpandProcMacroSt14default_deleteIS0_EEE", !29, i64 0}
!29 = !{!"_ZTSSt10_Head_baseILm0EP15ExpandProcMacroLb0EE", !6, i64 0}
!30 = distinct !{!30, !21}


; 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"

%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, std::unique_ptr<ExpandDecorator>>, std::_Select1st<std::pair<const RcString, std::unique_ptr<ExpandDecorator>>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, std::unique_ptr<ExpandDecorator>>, std::_Select1st<std::pair<const RcString, std::unique_ptr<ExpandDecorator>>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.0" = type { %"class.std::_Rb_tree.1" }
%"class.std::_Rb_tree.1" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, std::unique_ptr<ExpandProcMacro>>, std::_Select1st<std::pair<const RcString, std::unique_ptr<ExpandProcMacro>>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, std::unique_ptr<ExpandProcMacro>>, std::_Select1st<std::pair<const RcString, std::unique_ptr<ExpandProcMacro>>>, std::less<RcString>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair.10" = type { %class.RcString, %"class.std::unique_ptr" }
%class.RcString = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"struct.std::pair.24" = type { %class.RcString, %"class.std::unique_ptr.12" }
%"class.std::unique_ptr.12" = type { %"struct.std::__uniq_ptr_data.13" }
%"struct.std::__uniq_ptr_data.13" = type { %"class.std::__uniq_ptr_impl.14" }
%"class.std::__uniq_ptr_impl.14" = type { %"class.std::tuple.15" }
%"class.std::tuple.15" = type { %"struct.std::_Tuple_impl.16" }
%"struct.std::_Tuple_impl.16" = type { %"struct.std::_Head_base.19" }
%"struct.std::_Head_base.19" = type { ptr }

@g_decorators_list = external dso_local local_unnamed_addr global ptr, align 8
@g_macros_list = external dso_local local_unnamed_addr global ptr, align 8
@g_decorators = external dso_local global %"class.std::map", align 8
@g_macros = external dso_local global %"class.std::map.0", align 8

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapI8RcStringSt10unique_ptrI15ExpandDecoratorSt14default_deleteIS2_EESt4lessIS0_ESaISt4pairIKS0_S5_EEE6insertIS8_IS0_S5_EEENSt9enable_ifIXsr16is_constructibleISA_T_EE5valueES8_ISt17_Rb_tree_iteratorISA_EbEE4typeEOSG_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairI8RcStringSt10unique_ptrI15ExpandDecoratorSt14default_deleteIS2_EEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.10") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8RcString12new_internedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%class.RcString) align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapI8RcStringSt10unique_ptrI15ExpandProcMacroSt14default_deleteIS2_EESt4lessIS0_ESaISt4pairIKS0_S5_EEE6insertIS8_IS0_S5_EEENSt9enable_ifIXsr16is_constructibleISA_T_EE5valueES8_ISt17_Rb_tree_iteratorISA_EbEE4typeEOSG_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairI8RcStringSt10unique_ptrI15ExpandProcMacroSt14default_deleteIS2_EEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.24") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11Expand_Initv() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.std::pair.10", align 8
  %2 = alloca %class.RcString, align 8
  %3 = alloca %"struct.std::pair.24", align 8
  %4 = alloca %class.RcString, align 8
  tail call void @_Z18Expand_init_assertv()
  tail call void @_Z23Expand_init_std_preludev()
  tail call void @_Z17Expand_init_panicv()
  %.pr = load ptr, ptr @g_decorators_list, align 8, !tbaa !5
  %.not12 = icmp eq ptr %.pr, null
  br i1 %.not12, label %thread-pre-split, label %.lr.ph

.lr.ph:                                           ; preds = %0, %11
  %5 = phi ptr [ %13, %11 ], [ %.pr, %0 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %6 = getelementptr inbounds i8, ptr %5, i64 8
  call void @_ZN8RcString12new_internedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%class.RcString) align 8 %2, ptr noundef nonnull align 8 dereferenceable(32) %6)
  %7 = load ptr, ptr @g_decorators_list, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 40
  invoke void @_ZSt9make_pairI8RcStringSt10unique_ptrI15ExpandDecoratorSt14default_deleteIS2_EEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.10") align 8 %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %9 unwind label %14

9:                                                ; preds = %.lr.ph
  %10 = invoke { ptr, i8 } @_ZNSt3mapI8RcStringSt10unique_ptrI15ExpandDecoratorSt14default_deleteIS2_EESt4lessIS0_ESaISt4pairIKS0_S5_EEE6insertIS8_IS0_S5_EEENSt9enable_ifIXsr16is_constructibleISA_T_EE5valueES8_ISt17_Rb_tree_iteratorISA_EbEE4typeEOSG_(ptr noundef nonnull align 8 dereferenceable(48) @g_decorators, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %11 unwind label %16

11:                                               ; preds = %9
  call void @_ZNSt4pairI8RcStringSt10unique_ptrI15ExpandDecoratorSt14default_deleteIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #5
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  %12 = load ptr, ptr @g_decorators_list, align 8, !tbaa !5
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %13, ptr @g_decorators_list, align 8, !tbaa !5
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %thread-pre-split, label %.lr.ph, !llvm.loop !20

14:                                               ; preds = %.lr.ph
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %18

16:                                               ; preds = %9
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairI8RcStringSt10unique_ptrI15ExpandDecoratorSt14default_deleteIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #5
  br label %18

18:                                               ; preds = %16, %14
  %.pn8 = phi { ptr, i32 } [ %17, %16 ], [ %15, %14 ]
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  br label %33

thread-pre-split:                                 ; preds = %11, %0
  %.pr11 = load ptr, ptr @g_macros_list, align 8, !tbaa !5
  %.not613 = icmp eq ptr %.pr11, null
  br i1 %.not613, label %._crit_edge, label %.lr.ph14

.lr.ph14:                                         ; preds = %thread-pre-split, %25
  %19 = phi ptr [ %27, %25 ], [ %.pr11, %thread-pre-split ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  call void @_ZN8RcString12new_internedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%class.RcString) align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %20)
  %21 = load ptr, ptr @g_macros_list, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 40
  invoke void @_ZSt9make_pairI8RcStringSt10unique_ptrI15ExpandProcMacroSt14default_deleteIS2_EEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS7_INS8_IT0_E4typeEE6__typeEEOS9_OSE_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.24") align 8 %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %23 unwind label %28

23:                                               ; preds = %.lr.ph14
  %24 = invoke { ptr, i8 } @_ZNSt3mapI8RcStringSt10unique_ptrI15ExpandProcMacroSt14default_deleteIS2_EESt4lessIS0_ESaISt4pairIKS0_S5_EEE6insertIS8_IS0_S5_EEENSt9enable_ifIXsr16is_constructibleISA_T_EE5valueES8_ISt17_Rb_tree_iteratorISA_EbEE4typeEOSG_(ptr noundef nonnull align 8 dereferenceable(48) @g_macros, ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %25 unwind label %30

25:                                               ; preds = %23
  call void @_ZNSt4pairI8RcStringSt10unique_ptrI15ExpandProcMacroSt14default_deleteIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  %26 = load ptr, ptr @g_macros_list, align 8, !tbaa !5
  %27 = load ptr, ptr %26, align 8, !tbaa !22
  store ptr %27, ptr @g_macros_list, align 8, !tbaa !5
  %.not6 = icmp eq ptr %27, null
  br i1 %.not6, label %._crit_edge, label %.lr.ph14, !llvm.loop !30

28:                                               ; preds = %.lr.ph14
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %32

30:                                               ; preds = %23
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairI8RcStringSt10unique_ptrI15ExpandProcMacroSt14default_deleteIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  br label %32

32:                                               ; preds = %30, %28
  %.pn = phi { ptr, i32 } [ %31, %30 ], [ %29, %28 ]
  call void @_ZN8RcStringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  br label %33

._crit_edge:                                      ; preds = %25, %thread-pre-split
  ret void

33:                                               ; preds = %32, %18
  %.pn8.pn = phi { ptr, i32 } [ %.pn8, %18 ], [ %.pn, %32 ]
  resume { ptr, i32 } %.pn8.pn
}

declare void @_Z18Expand_init_assertv() local_unnamed_addr #4

declare void @_Z23Expand_init_std_preludev() local_unnamed_addr #4

declare void @_Z17Expand_init_panicv() local_unnamed_addr #4

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind "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 = { "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, !6, i64 0}
!10 = !{!"_ZTS12DecoratorDef", !6, i64 0, !11, i64 8, !14, i64 40}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSSt10unique_ptrI15ExpandDecoratorSt14default_deleteIS0_EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_dataI15ExpandDecoratorSt14default_deleteIS0_ELb1ELb1EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_implI15ExpandDecoratorSt14default_deleteIS0_EE", !17, i64 0}
!17 = !{!"_ZTSSt5tupleIJP15ExpandDecoratorSt14default_deleteIS0_EEE", !18, i64 0}
!18 = !{!"_ZTSSt11_Tuple_implILm0EJP15ExpandDecoratorSt14default_deleteIS0_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_Head_baseILm0EP15ExpandDecoratorLb0EE", !6, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTS8MacroDef", !6, i64 0, !11, i64 8, !24, i64 40}
!24 = !{!"_ZTSSt10unique_ptrI15ExpandProcMacroSt14default_deleteIS0_EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_dataI15ExpandProcMacroSt14default_deleteIS0_ELb1ELb1EE", !26, i64 0}
!26 = !{!"_ZTSSt15__uniq_ptr_implI15ExpandProcMacroSt14default_deleteIS0_EE", !27, i64 0}
!27 = !{!"_ZTSSt5tupleIJP15ExpandProcMacroSt14default_deleteIS0_EEE", !28, i64 0}
!28 = !{!"_ZTSSt11_Tuple_implILm0EJP15ExpandProcMacroSt14default_deleteIS0_EEE", !29, i64 0}
!29 = !{!"_ZTSSt10_Head_baseILm0EP15ExpandProcMacroLb0EE", !6, i64 0}
!30 = distinct !{!30, !21}


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