; LLVM IR from thepowersgang/mrustc :: src/hir (serialise_lowlevel)

; 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::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<std::pair<RcString, unsigned int>, std::allocator<std::pair<RcString, unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<RcString, unsigned int>, std::allocator<std::pair<RcString, unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<RcString, unsigned int>, std::allocator<std::pair<RcString, unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<RcString, unsigned int>, std::allocator<std::pair<RcString, unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair.14" = type <{ %class.RcString, i32, [4 x i8] }>
%class.RcString = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon = type { i8 }
%"class.HIR::serialise::Writer" = type { ptr, %"class.std::map", %"class.std::map.0" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<RcString, std::pair<const RcString, unsigned int>, std::_Select1st<std::pair<const RcString, unsigned int>>, std::less<RcString>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<RcString, std::pair<const RcString, unsigned int>, std::_Select1st<std::pair<const RcString, unsigned int>>, 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<const char *, std::pair<const char *const, unsigned int>, std::_Select1st<std::pair<const char *const, unsigned int>>, std::less<const char *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const char *, std::pair<const char *const, unsigned int>, std::_Select1st<std::pair<const char *const, unsigned int>>, std::less<const char *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair" = type <{ %class.RcString, i32, [4 x i8] }>

@g_debug_indent_level = external global i32, align 4
@__FUNCTION__._ZN3HIR9serialise6Writer4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE = external hidden unnamed_addr constant [5 x i8], align 1
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [85 x i8], align 1
@__PRETTY_FUNCTION__._ZN3HIR9serialise6Writer4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE = external hidden unnamed_addr constant [57 x i8], align 1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3HIR9serialise6Writer4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::vector.9", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::pair.14", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %class.anon, align 1
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %21 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #9
  call void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %23 = getelementptr inbounds %"class.HIR::serialise::Writer", ptr %22, i32 0, i32 1
  %24 = call noundef i64 @_ZNKSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %23) #9
  invoke void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %24)
          to label %25 unwind label %36

25:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %26 = getelementptr inbounds %"class.HIR::serialise::Writer", ptr %22, i32 0, i32 1
  store ptr %26, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = call ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %27) #9
  %29 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %9, i32 0, i32 0
  store ptr %28, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = call ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %30) #9
  %32 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %10, i32 0, i32 0
  store ptr %31, ptr %32, align 8
  br label %33

33:                                               ; preds = %45, %25
  %34 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK8RcStringjEES6_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br i1 %34, label %40, label %35

35:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %56

36:                                               ; preds = %70, %65, %56, %2
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %6, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %7, align 4
  br label %166

40:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %41 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK8RcStringjEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  store ptr %41, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZNSt4pairI8RcStringjEC2IKS0_jTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS5_S6_EEclsr6_PCCFPIS5_S6_EE26_ImplicitlyConvertiblePairIS5_S6_EEEbE4typeELb1EEERKS_IS5_S6_E(ptr noundef nonnull align 8 dereferenceable(12) %12, ptr noundef nonnull align 8 dereferenceable(12) %42)
          to label %43 unwind label %47

43:                                               ; preds = %40
  invoke void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(12) %12)
          to label %44 unwind label %51

44:                                               ; preds = %43
  call void @_ZNSt4pairI8RcStringjED2Ev(ptr noundef nonnull align 8 dereferenceable(12) %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %45

45:                                               ; preds = %44
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK8RcStringjEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  br label %33

47:                                               ; preds = %40
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %6, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %7, align 4
  br label %55

51:                                               ; preds = %43
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %6, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %7, align 4
  call void @_ZNSt4pairI8RcStringjED2Ev(ptr noundef nonnull align 8 dereferenceable(12) %12) #9
  br label %55

55:                                               ; preds = %51, %47
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %166

56:                                               ; preds = %35
  %57 = call ptr @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %58 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %57, ptr %58, align 8
  %59 = call ptr @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %60 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %59, ptr %60, align 8
  %61 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8
  %63 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairI8RcStringjESt6vectorIS4_SaIS4_EEEEZN3HIR9serialise6Writer4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE3$_0EvT_SM_T0_"(ptr %62, ptr %64)
          to label %65 unwind label %36

65:                                               ; preds = %56
  %66 = getelementptr inbounds %"class.HIR::serialise::Writer", ptr %22, i32 0, i32 2
  call void @_ZNSt3mapIPKcjSt4lessIS1_ESaISt4pairIKS1_jEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %66) #9
  %67 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 656) #10
          to label %68 unwind label %36

68:                                               ; preds = %65
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3HIR9serialise11WriterInnerC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(656) %67, ptr noundef nonnull align 8 dereferenceable(32) %69)
          to label %70 unwind label %79

70:                                               ; preds = %68
  %71 = getelementptr inbounds %"class.HIR::serialise::Writer", ptr %22, i32 0, i32 0
  store ptr %67, ptr %71, align 8, !tbaa !9
  %72 = call noundef i64 @_ZNKSt6vectorISt4pairI8RcStringjESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  invoke void @_ZN3HIR9serialise6Writer11write_countEm(ptr noundef nonnull align 8 dereferenceable(104) %22, i64 noundef %72)
          to label %73 unwind label %36

73:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  store i64 0, ptr %16, align 8, !tbaa !25
  br label %74

74:                                               ; preds = %137, %73
  %75 = load i64, ptr %16, align 8, !tbaa !25
  %76 = call noundef i64 @_ZNKSt6vectorISt4pairI8RcStringjESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %77 = icmp ult i64 %75, %76
  br i1 %77, label %83, label %78

78:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %140

79:                                               ; preds = %68
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %6, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %67, i64 noundef 656) #11
  br label %166

83:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %84 = load i64, ptr %16, align 8, !tbaa !25
  %85 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %84) #9
  %86 = getelementptr inbounds %"struct.std::pair.14", ptr %85, i32 0, i32 0
  store ptr %86, ptr %17, align 8, !tbaa !5
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = invoke noundef i64 @_ZNK8RcString4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %87)
          to label %89 unwind label %124

89:                                               ; preds = %83
  %90 = load ptr, ptr %17, align 8, !tbaa !5
  %91 = invoke noundef ptr @_ZNK8RcString5c_strEv(ptr noundef nonnull align 8 dereferenceable(8) %90)
          to label %92 unwind label %124

92:                                               ; preds = %89
  invoke void @_ZN3HIR9serialise6Writer12write_stringEmPKc(ptr noundef nonnull align 8 dereferenceable(104) %22, i64 noundef %88, ptr noundef %91)
          to label %93 unwind label %124

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  %95 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %96 unwind label %124

96:                                               ; preds = %94
  br i1 %95, label %97, label %128

97:                                               ; preds = %96
  %98 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !26
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %98, ptr noundef @__FUNCTION__._ZN3HIR9serialise6Writer4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE)
          to label %100 unwind label %124

100:                                              ; preds = %97
  %101 = load i64, ptr %16, align 8, !tbaa !25
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %99, i64 noundef %101)
          to label %103 unwind label %124

103:                                              ; preds = %100
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef @.str)
          to label %105 unwind label %124

105:                                              ; preds = %103
  %106 = getelementptr inbounds %"class.HIR::serialise::Writer", ptr %22, i32 0, i32 1
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %106, ptr noundef nonnull align 8 dereferenceable(8) %107)
          to label %109 unwind label %124

109:                                              ; preds = %105
  %110 = load i32, ptr %108, align 4, !tbaa !26
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %104, i32 noundef %110)
          to label %112 unwind label %124

112:                                              ; preds = %109
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef @.str.1)
          to label %114 unwind label %124

114:                                              ; preds = %112
  %115 = load ptr, ptr %17, align 8, !tbaa !5
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK8RcString(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef nonnull align 8 dereferenceable(8) %115)
          to label %117 unwind label %124

117:                                              ; preds = %114
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef @.str.2)
          to label %119 unwind label %124

119:                                              ; preds = %117
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef @_ZSt3decRSt8ios_base)
          to label %121 unwind label %124

121:                                              ; preds = %119
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %123 unwind label %124

123:                                              ; preds = %121
  br label %128

124:                                              ; preds = %130, %121, %119, %117, %114, %112, %109, %105, %103, %100, %97, %94, %92, %89, %83
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %6, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %166

128:                                              ; preds = %123, %96
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  %131 = load i64, ptr %16, align 8, !tbaa !25
  %132 = trunc i64 %131 to i32
  %133 = getelementptr inbounds %"class.HIR::serialise::Writer", ptr %22, i32 0, i32 1
  %134 = load ptr, ptr %17, align 8, !tbaa !5
  %135 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %133, ptr noundef nonnull align 8 dereferenceable(8) %134)
          to label %136 unwind label %124

136:                                              ; preds = %130
  store i32 %132, ptr %135, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %137

137:                                              ; preds = %136
  %138 = load i64, ptr %16, align 8, !tbaa !25
  %139 = add i64 %138, 1
  store i64 %139, ptr %16, align 8, !tbaa !25
  br label %74, !llvm.loop !28

140:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %141 = getelementptr inbounds %"class.HIR::serialise::Writer", ptr %22, i32 0, i32 1
  store ptr %141, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %142 = load ptr, ptr %18, align 8, !tbaa !5
  %143 = call ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %142) #9
  %144 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %19, i32 0, i32 0
  store ptr %143, ptr %144, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %145 = load ptr, ptr %18, align 8, !tbaa !5
  %146 = call ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %145) #9
  %147 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %20, i32 0, i32 0
  store ptr %146, ptr %147, align 8
  br label %148

148:                                              ; preds = %163, %140
  %149 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK8RcStringjEES6_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br i1 %149, label %151, label %150

150:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %165

151:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %152 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK8RcStringjEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  store ptr %152, ptr %21, align 8, !tbaa !5
  %153 = load ptr, ptr %21, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.std::pair", ptr %153, i32 0, i32 1
  %155 = load i32, ptr %154, align 8, !tbaa !30
  %156 = zext i32 %155 to i64
  %157 = call noundef i64 @_ZNKSt6vectorISt4pairI8RcStringjESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  %158 = icmp ult i64 %156, %157
  br i1 %158, label %159, label %160

159:                                              ; preds = %151
  br label %162

160:                                              ; preds = %151
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 66, ptr noundef @__PRETTY_FUNCTION__._ZN3HIR9serialise6Writer4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE) #12
  unreachable

161:                                              ; No predecessors!
  br label %162

162:                                              ; preds = %161, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %163

163:                                              ; preds = %162
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK8RcStringjEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #9
  br label %148

165:                                              ; preds = %150
  call void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #9
  ret void

166:                                              ; preds = %124, %79, %55, %36
  call void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #9
  br label %167

167:                                              ; preds = %166
  %168 = load ptr, ptr %6, align 8
  %169 = load i32, ptr %7, align 4
  %170 = insertvalue { ptr, i32 } poison, ptr %168, 0
  %171 = insertvalue { ptr, i32 } %170, i32 %169, 1
  resume { ptr, i32 } %171
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK8RcStringjEES6_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK8RcStringjEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) #1 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairI8RcStringjESt6vectorIS4_SaIS4_EEEEZN3HIR9serialise6Writer4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE3$_0EvT_SM_T0_"(ptr, ptr) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIPKcjSt4lessIS1_ESaISt4pairIKS1_jEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR9serialise6Writer11write_countEm(ptr noundef nonnull align 8 dereferenceable(104), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HIR9serialise6Writer12write_stringEmPKc(ptr noundef nonnull align 8 dereferenceable(104), i64 noundef, ptr noundef) #1 align 2

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

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

declare noundef zeroext i1 @_Z13debug_enabledv() #7

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK8RcString(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

declare noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef, ptr noundef) #7

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

declare void @_ZN3HIR9serialise11WriterInnerC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr, ptr)

attributes #0 = { nobuiltin 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = { nobuiltin allocsize(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 = { "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 #8 = { noreturn 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }
attributes #12 = { noreturn 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 = !{!"_ZTSN3HIR9serialise6WriterE", !6, i64 0, !11, i64 8, !20, i64 56}
!11 = !{!"_ZTSSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE", !12, i64 0}
!12 = !{!"_ZTSSt8_Rb_treeI8RcStringSt4pairIKS0_jESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE", !13, i64 0}
!13 = !{!"_ZTSNSt8_Rb_treeI8RcStringSt4pairIKS0_jESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !14, i64 0, !16, i64 8}
!14 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessI8RcStringEE", !15, i64 0}
!15 = !{!"_ZTSSt4lessI8RcStringE"}
!16 = !{!"_ZTSSt15_Rb_tree_header", !17, i64 0, !19, i64 32}
!17 = !{!"_ZTSSt18_Rb_tree_node_base", !18, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSSt3mapIPKcjSt4lessIS1_ESaISt4pairIKS1_jEEE", !21, i64 0}
!21 = !{!"_ZTSSt8_Rb_treeIPKcSt4pairIKS1_jESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !22, i64 0}
!22 = !{!"_ZTSNSt8_Rb_treeIPKcSt4pairIKS1_jESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !23, i64 0, !16, i64 8}
!23 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIPKcEE", !24, i64 0}
!24 = !{!"_ZTSSt4lessIPKcE"}
!25 = !{!19, !19, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"int", !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!31, !27, i64 8}
!31 = !{!"_ZTSSt4pairIK8RcStringjE", !32, i64 0, !27, i64 8}
!32 = !{!"_ZTS8RcString", !6, i64 0}


; 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::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<std::pair<RcString, unsigned int>, std::allocator<std::pair<RcString, unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<RcString, unsigned int>, std::allocator<std::pair<RcString, unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<RcString, unsigned int>, std::allocator<std::pair<RcString, unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<RcString, unsigned int>, std::allocator<std::pair<RcString, unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair.14" = type <{ %class.RcString, i32, [4 x i8] }>
%class.RcString = type { ptr }

@g_debug_indent_level = external local_unnamed_addr global i32, align 4
@__FUNCTION__._ZN3HIR9serialise6Writer4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE = external hidden unnamed_addr constant [5 x i8], align 1
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [85 x i8], align 1
@__PRETTY_FUNCTION__._ZN3HIR9serialise6Writer4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE = external hidden unnamed_addr constant [57 x i8], align 1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3HIR9serialise6Writer4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.9", align 8
  %4 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %6 = alloca %"struct.std::pair.14", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  call void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = call noundef i64 @_ZNKSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #9
  invoke void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %10)
          to label %11 unwind label %17

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %12 = call ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #9
  store ptr %12, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %13 = call ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #9
  store ptr %13, ptr %5, align 8
  %14 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK8RcStringjEES6_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  br i1 %14, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %21, %11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  %15 = call ptr @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %16 = call ptr @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairI8RcStringjESt6vectorIS4_SaIS4_EEEEZN3HIR9serialise6Writer4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE3$_0EvT_SM_T0_"(ptr %15, ptr %16)
          to label %29 unwind label %17

17:                                               ; preds = %33, %29, %._crit_edge, %2
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %88

.lr.ph:                                           ; preds = %11, %21
  %19 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK8RcStringjEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  invoke void @_ZNSt4pairI8RcStringjEC2IKS0_jTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS5_S6_EEclsr6_PCCFPIS5_S6_EE26_ImplicitlyConvertiblePairIS5_S6_EEEbE4typeELb1EEERKS_IS5_S6_E(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %19)
          to label %20 unwind label %24

20:                                               ; preds = %.lr.ph
  invoke void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(12) %6)
          to label %21 unwind label %26

21:                                               ; preds = %20
  call void @_ZNSt4pairI8RcStringjED2Ev(ptr noundef nonnull align 8 dereferenceable(12) %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK8RcStringjEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %23 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK8RcStringjEES6_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  br i1 %23, label %.lr.ph, label %._crit_edge

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

26:                                               ; preds = %20
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairI8RcStringjED2Ev(ptr noundef nonnull align 8 dereferenceable(12) %6) #9
  br label %28

28:                                               ; preds = %26, %24
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  br label %88

29:                                               ; preds = %._crit_edge
  %30 = getelementptr inbounds i8, ptr %0, i64 56
  call void @_ZNSt3mapIPKcjSt4lessIS1_ESaISt4pairIKS1_jEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %30) #9
  %31 = invoke noalias noundef nonnull dereferenceable(656) ptr @_Znwm(i64 noundef 656) #10
          to label %32 unwind label %17

32:                                               ; preds = %29
  invoke void @_ZN3HIR9serialise11WriterInnerC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(656) %31, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %33 unwind label %39

33:                                               ; preds = %32
  store ptr %31, ptr %0, align 8, !tbaa !5
  %34 = call noundef i64 @_ZNKSt6vectorISt4pairI8RcStringjESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  invoke void @_ZN3HIR9serialise6Writer11write_countEm(ptr noundef nonnull align 8 dereferenceable(104) %0, i64 noundef %34)
          to label %.preheader unwind label %17

.preheader:                                       ; preds = %33
  %35 = call noundef i64 @_ZNKSt6vectorISt4pairI8RcStringjESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %.not = icmp eq i64 %35, 0
  br i1 %.not, label %._crit_edge27, label %.lr.ph26

._crit_edge27:                                    ; preds = %73, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %36 = call ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #9
  store ptr %36, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %37 = call ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #9
  store ptr %37, ptr %8, align 8
  %38 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK8RcStringjEES6_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  br i1 %38, label %.lr.ph29, label %._crit_edge30

39:                                               ; preds = %32
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %31, i64 noundef 656) #11
  br label %88

.lr.ph26:                                         ; preds = %.preheader, %73
  %.02225 = phi i64 [ %75, %73 ], [ 0, %.preheader ]
  %41 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.02225) #9
  %42 = call noundef i64 @_ZNK8RcString4sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %41)
  %43 = call noundef ptr @_ZNK8RcString5c_strEv(ptr noundef nonnull align 8 dereferenceable(8) %41)
  invoke void @_ZN3HIR9serialise6Writer12write_stringEmPKc(ptr noundef nonnull align 8 dereferenceable(104) %0, i64 noundef %42, ptr noundef %43)
          to label %44 unwind label %69

44:                                               ; preds = %.lr.ph26
  %45 = invoke noundef zeroext i1 @_Z13debug_enabledv()
          to label %46 unwind label %69

46:                                               ; preds = %44
  br i1 %45, label %47, label %71

47:                                               ; preds = %46
  %48 = load i32, ptr @g_debug_indent_level, align 4, !tbaa !24
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef %48, ptr noundef nonnull @__FUNCTION__._ZN3HIR9serialise6Writer4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE)
          to label %50 unwind label %69

50:                                               ; preds = %47
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %49, i64 noundef %.02225)
          to label %52 unwind label %69

52:                                               ; preds = %50
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull @.str)
          to label %54 unwind label %69

54:                                               ; preds = %52
  %55 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %56 unwind label %69

56:                                               ; preds = %54
  %57 = load i32, ptr %55, align 4, !tbaa !24
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8) %53, i32 noundef %57)
          to label %59 unwind label %69

59:                                               ; preds = %56
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull @.str.1)
          to label %61 unwind label %69

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK8RcString(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %63 unwind label %69

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull @.str.2)
          to label %65 unwind label %69

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull @_ZSt3decRSt8ios_base)
          to label %67 unwind label %69

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %71 unwind label %69

69:                                               ; preds = %71, %67, %65, %63, %61, %59, %56, %54, %52, %50, %47, %44, %.lr.ph26
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %88

71:                                               ; preds = %67, %46
  %72 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %73 unwind label %69

73:                                               ; preds = %71
  %74 = trunc i64 %.02225 to i32
  store i32 %74, ptr %72, align 4, !tbaa !24
  %75 = add nuw i64 %.02225, 1
  %76 = call noundef i64 @_ZNKSt6vectorISt4pairI8RcStringjESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %77 = icmp ult i64 %75, %76
  br i1 %77, label %.lr.ph26, label %._crit_edge27, !llvm.loop !26

._crit_edge30:                                    ; preds = %85, %._crit_edge27
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  ret void

.lr.ph29:                                         ; preds = %._crit_edge27, %85
  %78 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK8RcStringjEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %79 = getelementptr inbounds i8, ptr %78, i64 8
  %80 = load i32, ptr %79, align 8, !tbaa !28
  %81 = zext i32 %80 to i64
  %82 = call noundef i64 @_ZNKSt6vectorISt4pairI8RcStringjESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %83 = icmp ugt i64 %82, %81
  br i1 %83, label %85, label %84

84:                                               ; preds = %.lr.ph29
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 66, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3HIR9serialise6Writer4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE) #12
  unreachable

85:                                               ; preds = %.lr.ph29
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK8RcStringjEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %87 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK8RcStringjEES6_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  br i1 %87, label %.lr.ph29, label %._crit_edge30

88:                                               ; preds = %69, %39, %28, %17
  %.pn.pn = phi { ptr, i32 } [ %.pn, %28 ], [ %70, %69 ], [ %18, %17 ], [ %40, %39 ]
  call void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIK8RcStringjEES6_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIK8RcStringjEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIK8RcStringjEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairI8RcStringjESt6vectorIS4_SaIS4_EEEEZN3HIR9serialise6Writer4openERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE3$_0EvT_SM_T0_"(ptr, ptr) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIPKcjSt4lessIS1_ESaISt4pairIKS1_jEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairI8RcStringjESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK8RcString5c_strEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

declare noundef zeroext i1 @_Z13debug_enabledv() local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK8RcString(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

declare noundef nonnull align 8 dereferenceable(8) ptr @_Z12debug_outputiPKc(i32 noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEEixERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3decRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairI8RcStringjESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

declare void @_ZN3HIR9serialise11WriterInnerC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr, ptr) local_unnamed_addr

attributes #0 = { nobuiltin 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = { nobuiltin allocsize(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 = { "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 #8 = { noreturn 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }
attributes #12 = { noreturn 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, !7, i64 0}
!6 = !{!"_ZTSN3HIR9serialise6WriterE", !7, i64 0, !10, i64 8, !19, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt3mapI8RcStringjSt4lessIS0_ESaISt4pairIKS0_jEEE", !11, i64 0}
!11 = !{!"_ZTSSt8_Rb_treeI8RcStringSt4pairIKS0_jESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE", !12, i64 0}
!12 = !{!"_ZTSNSt8_Rb_treeI8RcStringSt4pairIKS0_jESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !13, i64 0, !15, i64 8}
!13 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessI8RcStringEE", !14, i64 0}
!14 = !{!"_ZTSSt4lessI8RcStringE"}
!15 = !{!"_ZTSSt15_Rb_tree_header", !16, i64 0, !18, i64 32}
!16 = !{!"_ZTSSt18_Rb_tree_node_base", !17, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!17 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!18 = !{!"long", !8, i64 0}
!19 = !{!"_ZTSSt3mapIPKcjSt4lessIS1_ESaISt4pairIKS1_jEEE", !20, i64 0}
!20 = !{!"_ZTSSt8_Rb_treeIPKcSt4pairIKS1_jESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !21, i64 0}
!21 = !{!"_ZTSNSt8_Rb_treeIPKcSt4pairIKS1_jESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !22, i64 0, !15, i64 8}
!22 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIPKcEE", !23, i64 0}
!23 = !{!"_ZTSSt4lessIPKcE"}
!24 = !{!25, !25, i64 0}
!25 = !{!"int", !8, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!29, !25, i64 8}
!29 = !{!"_ZTSSt4pairIK8RcStringjE", !30, i64 0, !25, i64 8}
!30 = !{!"_ZTS8RcString", !7, i64 0}


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