; LLVM IR from tangjz/acm-icpc :: codeforces/gym (100443A)

; 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::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, bool>, std::allocator<std::pair<std::__cxx11::basic_string<char>, bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, bool>, std::allocator<std::pair<std::__cxx11::basic_string<char>, bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, bool>, std::allocator<std::pair<std::__cxx11::basic_string<char>, bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, bool>, std::allocator<std::pair<std::__cxx11::basic_string<char>, bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<double, bool>, std::allocator<std::pair<double, bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<double, bool>, std::allocator<std::pair<double, bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<double, bool>, std::allocator<std::pair<double, bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<double, bool>, std::allocator<std::pair<double, bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"struct.std::pair.13" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::pair.16" = type <{ %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"class.std::allocator.7" = type { i8 }
%"struct.std::pair.19" = type <{ double, i8, [7 x i8] }>
%"class.std::allocator.10" = type { i8 }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@tr = external dso_local global [301 x [3 x i32]], align 16
@_Z4HashB5cxx11 = external dso_local global %"class.std::unordered_map", align 8
@_Z3seqB5cxx11 = external dso_local global %"class.std::vector", align 8
@dp = external dso_local global [501 x [501 x %"class.std::vector.5"]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %10 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::pair.13", align 8
  %13 = alloca %"struct.std::pair.16", align 8
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::vector.5", align 8
  %18 = alloca %"class.std::allocator.7", align 1
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca double, align 8
  %21 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %22 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %23 = alloca i32, align 4
  %24 = alloca %"struct.std::pair.19", align 8
  %25 = alloca double, align 8
  %26 = alloca i8, align 1
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::allocator.10", align 1
  %40 = alloca i1, align 1
  %41 = alloca i1, align 1
  store i32 0, ptr %1, align 4
  %42 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %43 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %44 = getelementptr i8, ptr %43, i64 -24
  %45 = load i64, ptr %44, align 8
  %46 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %45
  %47 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %46, ptr noundef null)
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !8
  br label %49

49:                                               ; preds = %142, %0
  %50 = load i32, ptr %2, align 4, !tbaa !8
  %51 = load i32, ptr @n, align 4, !tbaa !8
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %145

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !8
  br label %55

55:                                               ; preds = %136, %54
  %56 = load i32, ptr %4, align 4, !tbaa !8
  %57 = icmp slt i32 %56, 3
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %141

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %60 = load i32, ptr %2, align 4, !tbaa !8
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [301 x [3 x i32]], ptr @tr, i64 0, i64 %61
  %63 = load i32, ptr %4, align 4, !tbaa !8
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [3 x i32], ptr %62, i64 0, i64 %64
  store ptr %65, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %67 unwind label %81

67:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %68 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %69 unwind label %85

69:                                               ; preds = %67
  %70 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %9, i32 0, i32 0
  %71 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %70, i32 0, i32 0
  store ptr %68, ptr %71, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %72 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11) #8
  %73 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %10, i32 0, i32 0
  %74 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %73, i32 0, i32 0
  store ptr %72, ptr %74, align 8
  %75 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb1EEESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br i1 %75, label %76, label %89

76:                                               ; preds = %69
  %77 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %78 = getelementptr inbounds %"struct.std::pair", ptr %77, i32 0, i32 1
  %79 = load i32, ptr %78, align 8, !tbaa !13
  %80 = load ptr, ptr %5, align 8, !tbaa !11
  store i32 %79, ptr %80, align 4, !tbaa !8
  br label %121

81:                                               ; preds = %59
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %7, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %8, align 4
  br label %140

85:                                               ; preds = %67
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %7, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %8, align 4
  br label %139

89:                                               ; preds = %69
  %90 = call noundef i64 @_ZNKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11) #8
  %91 = trunc i64 %90 to i32
  %92 = load ptr, ptr %5, align 8, !tbaa !11
  store i32 %91, ptr %92, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #8
  %93 = load ptr, ptr %5, align 8, !tbaa !11
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEC2IRS5_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISC_SD_EEEbE4typeELb1EEEOSC_OSD_(ptr noundef nonnull align 8 dereferenceable(36) %11, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 4 dereferenceable(4) %93)
          to label %94 unwind label %103

94:                                               ; preds = %89
  %95 = invoke { ptr, i8 } @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE6insertEOSC_(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11, ptr noundef nonnull align 8 dereferenceable(36) %11)
          to label %96 unwind label %107

96:                                               ; preds = %94
  %97 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 0
  %98 = extractvalue { ptr, i8 } %95, 0
  store ptr %98, ptr %97, align 8
  %99 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 1
  %100 = extractvalue { ptr, i8 } %95, 1
  store i8 %100, ptr %99, align 8
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #8
  store i8 0, ptr %14, align 1, !tbaa !18
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbEC2IRS5_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(33) %13, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %101 unwind label %112

101:                                              ; preds = %96
  invoke void @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE9push_backEOS7_(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11, ptr noundef nonnull align 8 dereferenceable(33) %13)
          to label %102 unwind label %116

102:                                              ; preds = %101
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #8
  br label %121

103:                                              ; preds = %89
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %7, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %8, align 4
  br label %111

107:                                              ; preds = %94
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %7, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %8, align 4
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #8
  br label %111

111:                                              ; preds = %107, %103
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #8
  br label %139

112:                                              ; preds = %96
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %7, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %8, align 4
  br label %120

116:                                              ; preds = %101
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %7, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %8, align 4
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %13) #8
  br label %120

120:                                              ; preds = %116, %112
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #8
  br label %139

121:                                              ; preds = %102, %76
  %122 = load i32, ptr %4, align 4, !tbaa !8
  %123 = icmp slt i32 %122, 2
  %124 = zext i1 %123 to i32
  %125 = load ptr, ptr %5, align 8, !tbaa !11
  %126 = load i32, ptr %125, align 4, !tbaa !8
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 8 dereferenceable(33) ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11, i64 noundef %127) #8
  %129 = getelementptr inbounds %"struct.std::pair.16", ptr %128, i32 0, i32 1
  %130 = load i8, ptr %129, align 8, !tbaa !20, !range !22, !noundef !23
  %131 = trunc i8 %130 to i1
  %132 = zext i1 %131 to i32
  %133 = or i32 %132, %124
  %134 = icmp ne i32 %133, 0
  %135 = zext i1 %134 to i8
  store i8 %135, ptr %129, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %136

136:                                              ; preds = %121
  %137 = load i32, ptr %4, align 4, !tbaa !8
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %4, align 4, !tbaa !8
  br label %55, !llvm.loop !24

139:                                              ; preds = %120, %111, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %140

140:                                              ; preds = %139, %81
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %459

141:                                              ; preds = %58
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %2, align 4, !tbaa !8
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %2, align 4, !tbaa !8
  br label %49, !llvm.loop !26

145:                                              ; preds = %53
  %146 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @t)
  br label %147

147:                                              ; preds = %442, %145
  %148 = load i32, ptr @t, align 4, !tbaa !8
  %149 = add nsw i32 %148, -1
  store i32 %149, ptr @t, align 4, !tbaa !8
  %150 = icmp ne i32 %148, 0
  br i1 %150, label %151, label %458

151:                                              ; preds = %147
  %152 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !8
  br label %153

153:                                              ; preds = %243, %151
  %154 = load i32, ptr %15, align 4, !tbaa !8
  %155 = load i32, ptr @m, align 4, !tbaa !8
  %156 = icmp slt i32 %154, %155
  br i1 %156, label %158, label %157

157:                                              ; preds = %153
  store i32 10, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %248

158:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %159 = load i32, ptr %15, align 4, !tbaa !8
  store i32 %159, ptr %16, align 4, !tbaa !8
  br label %160

160:                                              ; preds = %174, %158
  %161 = load i32, ptr %16, align 4, !tbaa !8
  %162 = load i32, ptr @m, align 4, !tbaa !8
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  store i32 13, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %181

165:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #8
  %166 = call noundef i64 @_ZNKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #8
  call void @_ZNSaISt4pairIdbEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  invoke void @_ZNSt6vectorISt4pairIdbESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %166, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %167 unwind label %177

167:                                              ; preds = %165
  %168 = load i32, ptr %15, align 4, !tbaa !8
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [501 x [501 x %"class.std::vector.5"]], ptr @dp, i64 0, i64 %169
  %171 = load i32, ptr %16, align 4, !tbaa !8
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [501 x %"class.std::vector.5"], ptr %170, i64 0, i64 %172
  call void @_ZNSt6vectorISt4pairIdbESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %173) #8
  call void @_ZNSt6vectorISt4pairIdbESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @_ZNSt15__new_allocatorISt4pairIdbEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  br label %174

174:                                              ; preds = %167
  %175 = load i32, ptr %16, align 4, !tbaa !8
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %16, align 4, !tbaa !8
  br label %160, !llvm.loop !27

177:                                              ; preds = %165
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %7, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %8, align 4
  call void @_ZNSt15__new_allocatorISt4pairIdbEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %247

181:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %182 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %183 unwind label %225

183:                                              ; preds = %181
  br label %184

184:                                              ; preds = %240, %183
  %185 = invoke noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef @.str)
          to label %186 unwind label %225

186:                                              ; preds = %184
  br i1 %185, label %187, label %242

187:                                              ; preds = %186
  %188 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %189 unwind label %225

189:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %190 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %191 unwind label %229

191:                                              ; preds = %189
  %192 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %21, i32 0, i32 0
  %193 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %192, i32 0, i32 0
  store ptr %190, ptr %193, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %194 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11) #8
  %195 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %22, i32 0, i32 0
  %196 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %195, i32 0, i32 0
  store ptr %194, ptr %196, align 8
  %197 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb1EEESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br i1 %197, label %198, label %238

198:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %199 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  %200 = getelementptr inbounds %"struct.std::pair", ptr %199, i32 0, i32 1
  %201 = load i32, ptr %200, align 8, !tbaa !13
  store i32 %201, ptr %23, align 4, !tbaa !8
  %202 = load i32, ptr @m, align 4, !tbaa !8
  %203 = icmp eq i32 %202, 1
  br i1 %203, label %211, label %204

204:                                              ; preds = %198
  %205 = load i32, ptr %23, align 4, !tbaa !8
  %206 = sext i32 %205 to i64
  %207 = call noundef nonnull align 8 dereferenceable(33) ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11, i64 noundef %206) #8
  %208 = getelementptr inbounds %"struct.std::pair.16", ptr %207, i32 0, i32 1
  %209 = load i8, ptr %208, align 8, !tbaa !20, !range !22, !noundef !23
  %210 = trunc i8 %209 to i1
  br i1 %210, label %211, label %237

211:                                              ; preds = %204, %198
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %212 = load double, ptr %20, align 8, !tbaa !28
  %213 = call double @log(double noundef %212) #8
  store double %213, ptr %25, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #8
  store i8 1, ptr %26, align 1, !tbaa !18
  invoke void @_ZNSt4pairIdbEC2IdbTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(9) %24, ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %214 unwind label %233

214:                                              ; preds = %211
  %215 = load i32, ptr %15, align 4, !tbaa !8
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [501 x [501 x %"class.std::vector.5"]], ptr @dp, i64 0, i64 %216
  %218 = load i32, ptr %15, align 4, !tbaa !8
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [501 x %"class.std::vector.5"], ptr %217, i64 0, i64 %219
  %221 = load i32, ptr %23, align 4, !tbaa !8
  %222 = sext i32 %221 to i64
  %223 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %220, i64 noundef %222) #8
  %224 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt4pairIdbEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(9) %223, ptr noundef nonnull align 8 dereferenceable(9) %24) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  br label %237

225:                                              ; preds = %187, %184, %181
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %7, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %8, align 4
  br label %246

229:                                              ; preds = %238, %189
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %7, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %8, align 4
  br label %241

233:                                              ; preds = %211
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %7, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %241

237:                                              ; preds = %214, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %238

238:                                              ; preds = %237, %191
  %239 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %240 unwind label %229

240:                                              ; preds = %238
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %184, !llvm.loop !30

241:                                              ; preds = %233, %229
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %246

242:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %15, align 4, !tbaa !8
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %15, align 4, !tbaa !8
  br label %153, !llvm.loop !31

246:                                              ; preds = %241, %225
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  br label %247

247:                                              ; preds = %246, %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %459

248:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 2, ptr %27, align 4, !tbaa !8
  br label %249

249:                                              ; preds = %376, %248
  %250 = load i32, ptr %27, align 4, !tbaa !8
  %251 = load i32, ptr @m, align 4, !tbaa !8
  %252 = icmp sle i32 %250, %251
  br i1 %252, label %254, label %253

253:                                              ; preds = %249
  store i32 18, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %379

254:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %255 = load i32, ptr %27, align 4, !tbaa !8
  %256 = sub nsw i32 %255, 1
  store i32 %256, ptr %29, align 4, !tbaa !8
  br label %257

257:                                              ; preds = %370, %254
  %258 = load i32, ptr %29, align 4, !tbaa !8
  %259 = load i32, ptr @m, align 4, !tbaa !8
  %260 = icmp slt i32 %258, %259
  br i1 %260, label %262, label %261

261:                                              ; preds = %257
  store i32 21, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %375

262:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %263 = load i32, ptr %28, align 4, !tbaa !8
  store i32 %263, ptr %30, align 4, !tbaa !8
  br label %264

264:                                              ; preds = %366, %262
  %265 = load i32, ptr %30, align 4, !tbaa !8
  %266 = load i32, ptr %29, align 4, !tbaa !8
  %267 = icmp slt i32 %265, %266
  br i1 %267, label %269, label %268

268:                                              ; preds = %264
  store i32 24, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %369

269:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 0, ptr %31, align 4, !tbaa !8
  br label %270

270:                                              ; preds = %362, %269
  %271 = load i32, ptr %31, align 4, !tbaa !8
  %272 = load i32, ptr @n, align 4, !tbaa !8
  %273 = icmp slt i32 %271, %272
  br i1 %273, label %275, label %274

274:                                              ; preds = %270
  store i32 27, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %365

275:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %276 = load i32, ptr %31, align 4, !tbaa !8
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [301 x [3 x i32]], ptr @tr, i64 0, i64 %277
  %279 = getelementptr inbounds [3 x i32], ptr %278, i64 0, i64 0
  %280 = load i32, ptr %279, align 4, !tbaa !8
  store i32 %280, ptr %32, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %281 = load i32, ptr %31, align 4, !tbaa !8
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [301 x [3 x i32]], ptr @tr, i64 0, i64 %282
  %284 = getelementptr inbounds [3 x i32], ptr %283, i64 0, i64 1
  %285 = load i32, ptr %284, align 4, !tbaa !8
  store i32 %285, ptr %33, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %286 = load i32, ptr %31, align 4, !tbaa !8
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [301 x [3 x i32]], ptr @tr, i64 0, i64 %287
  %289 = getelementptr inbounds [3 x i32], ptr %288, i64 0, i64 2
  %290 = load i32, ptr %289, align 4, !tbaa !8
  store i32 %290, ptr %34, align 4, !tbaa !8
  %291 = load i32, ptr %27, align 4, !tbaa !8
  %292 = load i32, ptr @m, align 4, !tbaa !8
  %293 = icmp slt i32 %291, %292
  br i1 %293, label %294, label %302

294:                                              ; preds = %275
  %295 = load i32, ptr %34, align 4, !tbaa !8
  %296 = sext i32 %295 to i64
  %297 = call noundef nonnull align 8 dereferenceable(33) ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11, i64 noundef %296) #8
  %298 = getelementptr inbounds %"struct.std::pair.16", ptr %297, i32 0, i32 1
  %299 = load i8, ptr %298, align 8, !tbaa !20, !range !22, !noundef !23
  %300 = trunc i8 %299 to i1
  br i1 %300, label %302, label %301

301:                                              ; preds = %294
  store i32 29, ptr %3, align 4
  br label %359

302:                                              ; preds = %294, %275
  %303 = load i32, ptr %28, align 4, !tbaa !8
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [501 x [501 x %"class.std::vector.5"]], ptr @dp, i64 0, i64 %304
  %306 = load i32, ptr %30, align 4, !tbaa !8
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [501 x %"class.std::vector.5"], ptr %305, i64 0, i64 %307
  %309 = load i32, ptr %32, align 4, !tbaa !8
  %310 = sext i32 %309 to i64
  %311 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %308, i64 noundef %310) #8
  %312 = load i32, ptr %30, align 4, !tbaa !8
  %313 = add nsw i32 %312, 1
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [501 x [501 x %"class.std::vector.5"]], ptr @dp, i64 0, i64 %314
  %316 = load i32, ptr %29, align 4, !tbaa !8
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [501 x %"class.std::vector.5"], ptr %315, i64 0, i64 %317
  %319 = load i32, ptr %33, align 4, !tbaa !8
  %320 = sext i32 %319 to i64
  %321 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %318, i64 noundef %320) #8
  %322 = load i32, ptr %28, align 4, !tbaa !8
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [501 x [501 x %"class.std::vector.5"]], ptr @dp, i64 0, i64 %323
  %325 = load i32, ptr %29, align 4, !tbaa !8
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [501 x %"class.std::vector.5"], ptr %324, i64 0, i64 %326
  %328 = load i32, ptr %34, align 4, !tbaa !8
  %329 = sext i32 %328 to i64
  %330 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %327, i64 noundef %329) #8
  call void @_Z3updRKSt4pairIdbES2_RS0_(ptr noundef nonnull align 8 dereferenceable(9) %311, ptr noundef nonnull align 8 dereferenceable(9) %321, ptr noundef nonnull align 8 dereferenceable(9) %330)
  %331 = load i32, ptr %28, align 4, !tbaa !8
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [501 x [501 x %"class.std::vector.5"]], ptr @dp, i64 0, i64 %332
  %334 = load i32, ptr %30, align 4, !tbaa !8
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [501 x %"class.std::vector.5"], ptr %333, i64 0, i64 %335
  %337 = load i32, ptr %33, align 4, !tbaa !8
  %338 = sext i32 %337 to i64
  %339 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %336, i64 noundef %338) #8
  %340 = load i32, ptr %30, align 4, !tbaa !8
  %341 = add nsw i32 %340, 1
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [501 x [501 x %"class.std::vector.5"]], ptr @dp, i64 0, i64 %342
  %344 = load i32, ptr %29, align 4, !tbaa !8
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [501 x %"class.std::vector.5"], ptr %343, i64 0, i64 %345
  %347 = load i32, ptr %32, align 4, !tbaa !8
  %348 = sext i32 %347 to i64
  %349 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %346, i64 noundef %348) #8
  %350 = load i32, ptr %28, align 4, !tbaa !8
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds [501 x [501 x %"class.std::vector.5"]], ptr @dp, i64 0, i64 %351
  %353 = load i32, ptr %29, align 4, !tbaa !8
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [501 x %"class.std::vector.5"], ptr %352, i64 0, i64 %354
  %356 = load i32, ptr %34, align 4, !tbaa !8
  %357 = sext i32 %356 to i64
  %358 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %355, i64 noundef %357) #8
  call void @_Z3updRKSt4pairIdbES2_RS0_(ptr noundef nonnull align 8 dereferenceable(9) %339, ptr noundef nonnull align 8 dereferenceable(9) %349, ptr noundef nonnull align 8 dereferenceable(9) %358)
  store i32 0, ptr %3, align 4
  br label %359

359:                                              ; preds = %302, %301
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  %360 = load i32, ptr %3, align 4
  switch i32 %360, label %464 [
    i32 0, label %361
    i32 29, label %362
  ]

361:                                              ; preds = %359
  br label %362

362:                                              ; preds = %361, %359
  %363 = load i32, ptr %31, align 4, !tbaa !8
  %364 = add nsw i32 %363, 1
  store i32 %364, ptr %31, align 4, !tbaa !8
  br label %270, !llvm.loop !32

365:                                              ; preds = %274
  br label %366

366:                                              ; preds = %365
  %367 = load i32, ptr %30, align 4, !tbaa !8
  %368 = add nsw i32 %367, 1
  store i32 %368, ptr %30, align 4, !tbaa !8
  br label %264, !llvm.loop !33

369:                                              ; preds = %268
  br label %370

370:                                              ; preds = %369
  %371 = load i32, ptr %28, align 4, !tbaa !8
  %372 = add nsw i32 %371, 1
  store i32 %372, ptr %28, align 4, !tbaa !8
  %373 = load i32, ptr %29, align 4, !tbaa !8
  %374 = add nsw i32 %373, 1
  store i32 %374, ptr %29, align 4, !tbaa !8
  br label %257, !llvm.loop !34

375:                                              ; preds = %261
  br label %376

376:                                              ; preds = %375
  %377 = load i32, ptr %27, align 4, !tbaa !8
  %378 = add nsw i32 %377, 1
  store i32 %378, ptr %27, align 4, !tbaa !8
  br label %249, !llvm.loop !35

379:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 -1, ptr %35, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %380 = load i32, ptr @m, align 4, !tbaa !8
  %381 = sub nsw i32 %380, 1
  %382 = sext i32 %381 to i64
  %383 = getelementptr inbounds [501 x %"class.std::vector.5"], ptr @dp, i64 0, i64 %382
  store ptr %383, ptr %36, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 0, ptr %37, align 4, !tbaa !8
  br label %384

384:                                              ; preds = %418, %379
  %385 = load i32, ptr %37, align 4, !tbaa !8
  %386 = call noundef i64 @_ZNKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11) #8
  %387 = trunc i64 %386 to i32
  %388 = icmp slt i32 %385, %387
  br i1 %388, label %390, label %389

389:                                              ; preds = %384
  store i32 30, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %421

390:                                              ; preds = %384
  %391 = load ptr, ptr %36, align 8, !tbaa !11
  %392 = load i32, ptr %37, align 4, !tbaa !8
  %393 = sext i32 %392 to i64
  %394 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %391, i64 noundef %393) #8
  %395 = getelementptr inbounds %"struct.std::pair.19", ptr %394, i32 0, i32 1
  %396 = load i8, ptr %395, align 8, !tbaa !36, !range !22, !noundef !23
  %397 = trunc i8 %396 to i1
  br i1 %397, label %398, label %417

398:                                              ; preds = %390
  %399 = load i32, ptr %35, align 4, !tbaa !8
  %400 = icmp eq i32 %399, -1
  br i1 %400, label %415, label %401

401:                                              ; preds = %398
  %402 = load ptr, ptr %36, align 8, !tbaa !11
  %403 = load i32, ptr %35, align 4, !tbaa !8
  %404 = sext i32 %403 to i64
  %405 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %402, i64 noundef %404) #8
  %406 = getelementptr inbounds %"struct.std::pair.19", ptr %405, i32 0, i32 0
  %407 = load double, ptr %406, align 8, !tbaa !38
  %408 = load ptr, ptr %36, align 8, !tbaa !11
  %409 = load i32, ptr %37, align 4, !tbaa !8
  %410 = sext i32 %409 to i64
  %411 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %408, i64 noundef %410) #8
  %412 = getelementptr inbounds %"struct.std::pair.19", ptr %411, i32 0, i32 0
  %413 = load double, ptr %412, align 8, !tbaa !38
  %414 = fcmp olt double %407, %413
  br i1 %414, label %415, label %417

415:                                              ; preds = %401, %398
  %416 = load i32, ptr %37, align 4, !tbaa !8
  store i32 %416, ptr %35, align 4, !tbaa !8
  br label %417

417:                                              ; preds = %415, %401, %390
  br label %418

418:                                              ; preds = %417
  %419 = load i32, ptr %37, align 4, !tbaa !8
  %420 = add nsw i32 %419, 1
  store i32 %420, ptr %37, align 4, !tbaa !8
  br label %384, !llvm.loop !39

421:                                              ; preds = %389
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #8
  %422 = load i32, ptr %35, align 4, !tbaa !8
  %423 = icmp eq i32 %422, -1
  store i1 false, ptr %40, align 1
  store i1 false, ptr %41, align 1
  br i1 %423, label %424, label %426

424:                                              ; preds = %421
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #8
  store i1 true, ptr %40, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #8
  store i1 true, ptr %41, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %425 unwind label %443

425:                                              ; preds = %424
  br label %432

426:                                              ; preds = %421
  %427 = load i32, ptr %35, align 4, !tbaa !8
  %428 = sext i32 %427 to i64
  %429 = call noundef nonnull align 8 dereferenceable(33) ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11, i64 noundef %428) #8
  %430 = getelementptr inbounds %"struct.std::pair.16", ptr %429, i32 0, i32 0
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %430)
          to label %431 unwind label %443

431:                                              ; preds = %426
  br label %432

432:                                              ; preds = %431, %425
  %433 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %434 unwind label %447

434:                                              ; preds = %432
  %435 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %433, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %436 unwind label %447

436:                                              ; preds = %434
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #8
  %437 = load i1, ptr %41, align 1
  br i1 %437, label %438, label %439

438:                                              ; preds = %436
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #8
  br label %439

439:                                              ; preds = %438, %436
  %440 = load i1, ptr %40, align 1
  br i1 %440, label %441, label %442

441:                                              ; preds = %439
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #8
  br label %442

442:                                              ; preds = %441, %439
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %147, !llvm.loop !40

443:                                              ; preds = %426, %424
  %444 = landingpad { ptr, i32 }
          cleanup
  %445 = extractvalue { ptr, i32 } %444, 0
  store ptr %445, ptr %7, align 8
  %446 = extractvalue { ptr, i32 } %444, 1
  store i32 %446, ptr %8, align 4
  br label %451

447:                                              ; preds = %434, %432
  %448 = landingpad { ptr, i32 }
          cleanup
  %449 = extractvalue { ptr, i32 } %448, 0
  store ptr %449, ptr %7, align 8
  %450 = extractvalue { ptr, i32 } %448, 1
  store i32 %450, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #8
  br label %451

451:                                              ; preds = %447, %443
  %452 = load i1, ptr %41, align 1
  br i1 %452, label %453, label %454

453:                                              ; preds = %451
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #8
  br label %454

454:                                              ; preds = %453, %451
  %455 = load i1, ptr %40, align 1
  br i1 %455, label %456, label %457

456:                                              ; preds = %454
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #8
  br label %457

457:                                              ; preds = %456, %454
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %459

458:                                              ; preds = %147
  ret i32 0

459:                                              ; preds = %457, %247, %140
  %460 = load ptr, ptr %7, align 8
  %461 = load i32, ptr %8, align 4
  %462 = insertvalue { ptr, i32 } poison, ptr %460, 0
  %463 = insertvalue { ptr, i32 } %462, i32 %461, 1
  resume { ptr, i32 } %463

464:                                              ; preds = %359
  unreachable
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #0 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE6insertEOSC_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(36)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE9push_backEOS7_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(33)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbEC2IRS5_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(33) ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt4pairIdbEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIdbESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: nounwind
declare double @log(double noundef) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt4pairIdbEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(9)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z3updRKSt4pairIdbES2_RS0_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(9)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #6

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 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)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt4pairIdbEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress norecurse 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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!14, !9, i64 32}
!14 = !{!"_ZTSSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiE", !15, i64 0, !9, i64 32}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !10, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!17 = !{!"long", !10, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !10, i64 0}
!20 = !{!21, !19, i64 32}
!21 = !{!"_ZTSSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbE", !15, i64 0, !19, i64 32}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}
!28 = !{!29, !29, i64 0}
!29 = !{!"double", !10, i64 0}
!30 = distinct !{!30, !25}
!31 = distinct !{!31, !25}
!32 = distinct !{!32, !25}
!33 = distinct !{!33, !25}
!34 = distinct !{!34, !25}
!35 = distinct !{!35, !25}
!36 = !{!37, !19, i64 8}
!37 = !{!"_ZTSSt4pairIdbE", !29, i64 0, !19, i64 8}
!38 = !{!37, !29, i64 0}
!39 = distinct !{!39, !25}
!40 = distinct !{!40, !25}


; 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::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, bool>, std::allocator<std::pair<std::__cxx11::basic_string<char>, bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, bool>, std::allocator<std::pair<std::__cxx11::basic_string<char>, bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, bool>, std::allocator<std::pair<std::__cxx11::basic_string<char>, bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, bool>, std::allocator<std::pair<std::__cxx11::basic_string<char>, bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<double, bool>, std::allocator<std::pair<double, bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<double, bool>, std::allocator<std::pair<double, bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<double, bool>, std::allocator<std::pair<double, bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<double, bool>, std::allocator<std::pair<double, bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"struct.std::pair.16" = type <{ %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"class.std::allocator.7" = type { i8 }
%"struct.std::pair.19" = type <{ double, i8, [7 x i8] }>
%"class.std::allocator.10" = type { i8 }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@tr = external dso_local global [301 x [3 x i32]], align 16
@_Z4HashB5cxx11 = external dso_local global %"class.std::unordered_map", align 8
@_Z3seqB5cxx11 = external dso_local global %"class.std::vector", align 8
@dp = external dso_local global [501 x [501 x %"class.std::vector.5"]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %3 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca %"struct.std::pair.16", align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.std::vector.5", align 8
  %8 = alloca %"class.std::allocator.7", align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca double, align 8
  %11 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %12 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %13 = alloca %"struct.std::pair.19", align 8
  %14 = alloca double, align 8
  %15 = alloca i8, align 1
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator.10", align 1
  %18 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %19 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %20 = getelementptr i8, ptr %19, i64 -24
  %21 = load i64, ptr %20, align 8
  %22 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %21
  %23 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %22, ptr noundef null)
  %24 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %25 = load i32, ptr @n, align 4, !tbaa !8
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.preheader120, label %._crit_edge

.preheader120:                                    ; preds = %0, %111
  %indvars.iv = phi i64 [ %indvars.iv.next, %111 ], [ 0, %0 ]
  %27 = getelementptr inbounds [301 x [3 x i32]], ptr @tr, i64 0, i64 %indvars.iv, i64 0
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  %28 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %32 unwind label %41

._crit_edge:                                      ; preds = %111, %0
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @t)
  %30 = load i32, ptr @t, align 4, !tbaa !8
  %31 = add nsw i32 %30, -1
  store i32 %31, ptr @t, align 4, !tbaa !8
  %.not148 = icmp eq i32 %30, 0
  br i1 %.not148, label %._crit_edge151, label %.lr.ph150

32:                                               ; preds = %.preheader120
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %33 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %34 unwind label %43

34:                                               ; preds = %32
  store ptr %33, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %35 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11) #8
  store ptr %35, ptr %3, align 8
  %36 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb1EEESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  br i1 %36, label %37, label %45

37:                                               ; preds = %34
  %38 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %39 = getelementptr inbounds i8, ptr %38, i64 32
  %40 = load i32, ptr %39, align 8, !tbaa !11
  store i32 %40, ptr %27, align 4, !tbaa !8
  br label %63

41:                                               ; preds = %87, %63, %.preheader120
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %119

43:                                               ; preds = %94, %70, %32
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %118

45:                                               ; preds = %34
  %46 = call noundef i64 @_ZNKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11) #8
  %47 = trunc i64 %46 to i32
  store i32 %47, ptr %27, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #8
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEC2IRS5_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISC_SD_EEEbE4typeELb1EEEOSC_OSD_(ptr noundef nonnull align 8 dereferenceable(36) %4, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %48 unwind label %53

48:                                               ; preds = %45
  %49 = invoke { ptr, i8 } @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE6insertEOSC_(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11, ptr noundef nonnull align 8 dereferenceable(36) %4)
          to label %50 unwind label %55

50:                                               ; preds = %48
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %4) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !17
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbEC2IRS5_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(33) %5, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %51 unwind label %58

51:                                               ; preds = %50
  invoke void @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE9push_backEOS7_(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11, ptr noundef nonnull align 8 dereferenceable(33) %5)
          to label %52 unwind label %60

52:                                               ; preds = %51
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #8
  %.pre = load i32, ptr %27, align 4, !tbaa !8
  br label %63

53:                                               ; preds = %99, %75, %45
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %57

55:                                               ; preds = %102, %78, %48
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %4) #8
  br label %57

57:                                               ; preds = %55, %53
  %.pn107 = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  br label %118

58:                                               ; preds = %104, %80, %50
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %62

60:                                               ; preds = %105, %81, %51
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %5) #8
  br label %62

62:                                               ; preds = %60, %58
  %.pn109 = phi { ptr, i32 } [ %61, %60 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #8
  br label %118

63:                                               ; preds = %52, %37
  %64 = phi i32 [ %.pre, %52 ], [ %40, %37 ]
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 8 dereferenceable(33) ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11, i64 noundef %65) #8
  %67 = getelementptr inbounds i8, ptr %66, i64 32
  store i8 1, ptr %67, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  %68 = getelementptr inbounds [301 x [3 x i32]], ptr @tr, i64 0, i64 %indvars.iv, i64 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  %69 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %70 unwind label %41

70:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %71 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %72 unwind label %43

72:                                               ; preds = %70
  store ptr %71, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %73 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11) #8
  store ptr %73, ptr %3, align 8
  %74 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb1EEESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  br i1 %74, label %83, label %75

75:                                               ; preds = %72
  %76 = call noundef i64 @_ZNKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11) #8
  %77 = trunc i64 %76 to i32
  store i32 %77, ptr %68, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #8
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEC2IRS5_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISC_SD_EEEbE4typeELb1EEEOSC_OSD_(ptr noundef nonnull align 8 dereferenceable(36) %4, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 4 dereferenceable(4) %68)
          to label %78 unwind label %53

78:                                               ; preds = %75
  %79 = invoke { ptr, i8 } @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE6insertEOSC_(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11, ptr noundef nonnull align 8 dereferenceable(36) %4)
          to label %80 unwind label %55

80:                                               ; preds = %78
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %4) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !17
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbEC2IRS5_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(33) %5, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %81 unwind label %58

81:                                               ; preds = %80
  invoke void @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE9push_backEOS7_(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11, ptr noundef nonnull align 8 dereferenceable(33) %5)
          to label %82 unwind label %60

82:                                               ; preds = %81
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #8
  %.pre184 = load i32, ptr %68, align 4, !tbaa !8
  br label %87

83:                                               ; preds = %72
  %84 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %85 = getelementptr inbounds i8, ptr %84, i64 32
  %86 = load i32, ptr %85, align 8, !tbaa !11
  store i32 %86, ptr %68, align 4, !tbaa !8
  br label %87

87:                                               ; preds = %83, %82
  %88 = phi i32 [ %86, %83 ], [ %.pre184, %82 ]
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 8 dereferenceable(33) ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11, i64 noundef %89) #8
  %91 = getelementptr inbounds i8, ptr %90, i64 32
  store i8 1, ptr %91, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  %92 = getelementptr inbounds [301 x [3 x i32]], ptr @tr, i64 0, i64 %indvars.iv, i64 2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  %93 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %94 unwind label %41

94:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %95 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %96 unwind label %43

96:                                               ; preds = %94
  store ptr %95, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %97 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11) #8
  store ptr %97, ptr %3, align 8
  %98 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb1EEESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  br i1 %98, label %107, label %99

99:                                               ; preds = %96
  %100 = call noundef i64 @_ZNKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11) #8
  %101 = trunc i64 %100 to i32
  store i32 %101, ptr %92, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #8
  invoke void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiEC2IRS5_RiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISC_SD_EEEbE4typeELb1EEEOSC_OSD_(ptr noundef nonnull align 8 dereferenceable(36) %4, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 4 dereferenceable(4) %92)
          to label %102 unwind label %53

102:                                              ; preds = %99
  %103 = invoke { ptr, i8 } @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE6insertEOSC_(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11, ptr noundef nonnull align 8 dereferenceable(36) %4)
          to label %104 unwind label %55

104:                                              ; preds = %102
  call void @_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %4) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !17
  invoke void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbEC2IRS5_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(33) %5, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %105 unwind label %58

105:                                              ; preds = %104
  invoke void @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE9push_backEOS7_(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11, ptr noundef nonnull align 8 dereferenceable(33) %5)
          to label %106 unwind label %60

106:                                              ; preds = %105
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #8
  %.pre185 = load i32, ptr %92, align 4, !tbaa !8
  br label %111

107:                                              ; preds = %96
  %108 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  %109 = getelementptr inbounds i8, ptr %108, i64 32
  %110 = load i32, ptr %109, align 8, !tbaa !11
  store i32 %110, ptr %92, align 4, !tbaa !8
  br label %111

111:                                              ; preds = %107, %106
  %112 = phi i32 [ %110, %107 ], [ %.pre185, %106 ]
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 8 dereferenceable(33) ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11, i64 noundef %113) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %115 = load i32, ptr @n, align 4, !tbaa !8
  %116 = sext i32 %115 to i64
  %117 = icmp slt i64 %indvars.iv.next, %116
  br i1 %117, label %.preheader120, label %._crit_edge, !llvm.loop !21

118:                                              ; preds = %62, %57, %43
  %.pn109.pn = phi { ptr, i32 } [ %.pn109, %62 ], [ %.pn107, %57 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  br label %119

119:                                              ; preds = %118, %41
  %.pn109.pn.pn = phi { ptr, i32 } [ %.pn109.pn, %118 ], [ %42, %41 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  br label %261

.lr.ph150:                                        ; preds = %._crit_edge, %.critedge
  %120 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %121 = load i32, ptr @m, align 4, !tbaa !8
  %122 = icmp sgt i32 %121, 0
  br i1 %122, label %.preheader118, label %._crit_edge141

.preheader119:                                    ; preds = %166
  %.not101138 = icmp slt i32 %167, 2
  br i1 %.not101138, label %._crit_edge141, label %.lr.ph140

.preheader118:                                    ; preds = %.lr.ph150, %166
  %123 = phi i32 [ %167, %166 ], [ %121, %.lr.ph150 ]
  %indvars.iv160 = phi i64 [ %indvars.iv.next161, %166 ], [ 0, %.lr.ph150 ]
  %124 = sext i32 %123 to i64
  %125 = icmp slt i64 %indvars.iv160, %124
  br i1 %125, label %.lr.ph, label %._crit_edge126

._crit_edge126:                                   ; preds = %129, %.preheader118
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %126 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %.preheader117 unwind label %.loopexit.split-lp

.preheader117:                                    ; preds = %._crit_edge126
  %127 = getelementptr inbounds [501 x [501 x %"class.std::vector.5"]], ptr @dp, i64 0, i64 %indvars.iv160, i64 %indvars.iv160
  br label %136

.lr.ph:                                           ; preds = %.preheader118, %129
  %indvars.iv162 = phi i64 [ %indvars.iv.next163, %129 ], [ %indvars.iv160, %.preheader118 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  %128 = call noundef i64 @_ZNKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #8
  call void @_ZNSaISt4pairIdbEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt6vectorISt4pairIdbESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %128, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %129 unwind label %134

129:                                              ; preds = %.lr.ph
  %130 = getelementptr inbounds [501 x [501 x %"class.std::vector.5"]], ptr @dp, i64 0, i64 %indvars.iv160, i64 %indvars.iv162
  call void @_ZNSt6vectorISt4pairIdbESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %130) #8
  call void @_ZNSt6vectorISt4pairIdbESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @_ZNSt15__new_allocatorISt4pairIdbEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  %indvars.iv.next163 = add nuw nsw i64 %indvars.iv162, 1
  %131 = load i32, ptr @m, align 4, !tbaa !8
  %132 = trunc nuw i64 %indvars.iv.next163 to i32
  %133 = icmp sgt i32 %131, %132
  br i1 %133, label %.lr.ph, label %._crit_edge126, !llvm.loop !23

134:                                              ; preds = %.lr.ph
  %135 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairIdbEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  br label %261

136:                                              ; preds = %.preheader117, %165
  %137 = invoke noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str)
          to label %138 unwind label %.loopexit

138:                                              ; preds = %136
  br i1 %137, label %139, label %166

139:                                              ; preds = %138
  %140 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %141 unwind label %.loopexit

141:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %142 = invoke ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %143 unwind label %161

143:                                              ; preds = %141
  store ptr %142, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %144 = call ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @_Z4HashB5cxx11) #8
  store ptr %144, ptr %12, align 8
  %145 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb1EEESC_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br i1 %145, label %146, label %163

146:                                              ; preds = %143
  %147 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %148 = getelementptr inbounds i8, ptr %147, i64 32
  %149 = load i32, ptr %148, align 8, !tbaa !11
  %150 = load i32, ptr @m, align 4, !tbaa !8
  %151 = icmp eq i32 %150, 1
  %.pre189 = sext i32 %149 to i64
  br i1 %151, label %._crit_edge188, label %152

152:                                              ; preds = %146
  %153 = call noundef nonnull align 8 dereferenceable(33) ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11, i64 noundef %.pre189) #8
  %154 = getelementptr inbounds i8, ptr %153, i64 32
  %155 = load i8, ptr %154, align 8, !tbaa !19, !range !24, !noundef !25
  %156 = trunc nuw i8 %155 to i1
  br i1 %156, label %._crit_edge188, label %163

._crit_edge188:                                   ; preds = %146, %152
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %157 = load double, ptr %10, align 8, !tbaa !26
  %158 = call double @log(double noundef %157) #8
  store double %158, ptr %14, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #8
  store i8 1, ptr %15, align 1, !tbaa !17
  call void @_ZNSt4pairIdbEC2IdbTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(9) %13, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
  %159 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %.pre189) #8
  %160 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt4pairIdbEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(9) %159, ptr noundef nonnull align 8 dereferenceable(9) %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  br label %163

.loopexit:                                        ; preds = %136, %139
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %170

.loopexit.split-lp:                               ; preds = %._crit_edge126
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %170

161:                                              ; preds = %163, %141
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %170

163:                                              ; preds = %152, %._crit_edge188, %143
  %164 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %165 unwind label %161

165:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %136, !llvm.loop !28

166:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %167 = load i32, ptr @m, align 4, !tbaa !8
  %168 = sext i32 %167 to i64
  %169 = icmp slt i64 %indvars.iv.next161, %168
  br i1 %169, label %.preheader118, label %.preheader119, !llvm.loop !29

170:                                              ; preds = %.loopexit, %.loopexit.split-lp, %161
  %.pn103 = phi { ptr, i32 } [ %162, %161 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  br label %261

._crit_edge141:                                   ; preds = %._crit_edge137, %.lr.ph150, %.preheader119
  %.lcssa = phi i32 [ %167, %.preheader119 ], [ %121, %.lr.ph150 ], [ %183, %._crit_edge137 ]
  %171 = add nsw i32 %.lcssa, -1
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [501 x %"class.std::vector.5"], ptr @dp, i64 0, i64 %172
  %174 = call noundef i64 @_ZNKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11) #8
  %175 = trunc i64 %174 to i32
  %176 = icmp sgt i32 %175, 0
  br i1 %176, label %.lr.ph145, label %._crit_edge146.thread

._crit_edge146.thread:                            ; preds = %._crit_edge141
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #8
  br label %242

.lr.ph140:                                        ; preds = %.preheader119, %._crit_edge137
  %177 = phi i32 [ %183, %._crit_edge137 ], [ %167, %.preheader119 ]
  %indvars.iv174 = phi i64 [ %indvars.iv.next175, %._crit_edge137 ], [ 1, %.preheader119 ]
  %.089139 = phi i32 [ %184, %._crit_edge137 ], [ 2, %.preheader119 ]
  %.not152 = icmp sgt i32 %.089139, %177
  br i1 %.not152, label %._crit_edge137, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.lr.ph140, %._crit_edge132
  %178 = phi i32 [ %190, %._crit_edge132 ], [ %177, %.lr.ph140 ]
  %179 = phi i32 [ %191, %._crit_edge132 ], [ %177, %.lr.ph140 ]
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %._crit_edge132 ], [ %indvars.iv174, %.lr.ph140 ]
  %indvars.iv169 = phi i64 [ %indvars.iv.next170, %._crit_edge132 ], [ 0, %.lr.ph140 ]
  %180 = getelementptr inbounds [501 x [501 x %"class.std::vector.5"]], ptr @dp, i64 0, i64 %indvars.iv169, i64 %indvars.iv176
  %181 = load i32, ptr @n, align 4, !tbaa !8
  %182 = icmp sgt i32 %181, 0
  br i1 %182, label %.preheader, label %._crit_edge132

._crit_edge137:                                   ; preds = %._crit_edge132, %.lr.ph140
  %183 = phi i32 [ %177, %.lr.ph140 ], [ %190, %._crit_edge132 ]
  %184 = add nuw nsw i32 %.089139, 1
  %.not101.not = icmp slt i32 %.089139, %183
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  br i1 %.not101.not, label %.lr.ph140, label %._crit_edge141, !llvm.loop !30

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge130
  %185 = phi i32 [ %194, %._crit_edge130 ], [ %181, %.preheader.lr.ph ]
  %indvars.iv171 = phi i64 [ %indvars.iv.next172.pre-phi, %._crit_edge130 ], [ %indvars.iv169, %.preheader.lr.ph ]
  %186 = icmp sgt i32 %185, 0
  br i1 %186, label %.lr.ph129, label %.preheader.._crit_edge130_crit_edge

.preheader.._crit_edge130_crit_edge:              ; preds = %.preheader
  %.pre192 = add nuw nsw i64 %indvars.iv171, 1
  br label %._crit_edge130

.lr.ph129:                                        ; preds = %.preheader
  %187 = getelementptr inbounds [501 x [501 x %"class.std::vector.5"]], ptr @dp, i64 0, i64 %indvars.iv169, i64 %indvars.iv171
  %188 = add nuw nsw i64 %indvars.iv171, 1
  %189 = getelementptr inbounds [501 x [501 x %"class.std::vector.5"]], ptr @dp, i64 0, i64 %188, i64 %indvars.iv176
  br label %195

._crit_edge132.loopexit:                          ; preds = %._crit_edge130
  %.pre186 = load i32, ptr @m, align 4, !tbaa !8
  br label %._crit_edge132

._crit_edge132:                                   ; preds = %.preheader.lr.ph, %._crit_edge132.loopexit
  %190 = phi i32 [ %.pre186, %._crit_edge132.loopexit ], [ %178, %.preheader.lr.ph ]
  %191 = phi i32 [ %.pre186, %._crit_edge132.loopexit ], [ %179, %.preheader.lr.ph ]
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %192 = sext i32 %191 to i64
  %193 = icmp slt i64 %indvars.iv.next177, %192
  br i1 %193, label %.preheader.lr.ph, label %._crit_edge137, !llvm.loop !31

._crit_edge130:                                   ; preds = %218, %.preheader.._crit_edge130_crit_edge
  %indvars.iv.next172.pre-phi = phi i64 [ %.pre192, %.preheader.._crit_edge130_crit_edge ], [ %188, %218 ]
  %194 = phi i32 [ %185, %.preheader.._crit_edge130_crit_edge ], [ %219, %218 ]
  %exitcond.not = icmp eq i64 %indvars.iv.next172.pre-phi, %indvars.iv176
  br i1 %exitcond.not, label %._crit_edge132.loopexit, label %.preheader, !llvm.loop !32

195:                                              ; preds = %.lr.ph129, %218
  %indvars.iv166 = phi i64 [ 0, %.lr.ph129 ], [ %indvars.iv.next167, %218 ]
  %196 = getelementptr inbounds [301 x [3 x i32]], ptr @tr, i64 0, i64 %indvars.iv166
  %197 = load i32, ptr %196, align 4, !tbaa !8
  %198 = getelementptr inbounds i8, ptr %196, i64 4
  %199 = load i32, ptr %198, align 4, !tbaa !8
  %200 = getelementptr inbounds i8, ptr %196, i64 8
  %201 = load i32, ptr %200, align 4, !tbaa !8
  %202 = load i32, ptr @m, align 4, !tbaa !8
  %203 = icmp slt i32 %.089139, %202
  %204 = sext i32 %201 to i64
  br i1 %203, label %205, label %._crit_edge187

205:                                              ; preds = %195
  %206 = call noundef nonnull align 8 dereferenceable(33) ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11, i64 noundef %204) #8
  %207 = getelementptr inbounds i8, ptr %206, i64 32
  %208 = load i8, ptr %207, align 8, !tbaa !19, !range !24, !noundef !25
  %209 = trunc nuw i8 %208 to i1
  br i1 %209, label %._crit_edge187, label %218

._crit_edge187:                                   ; preds = %195, %205
  %210 = sext i32 %197 to i64
  %211 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %210) #8
  %212 = sext i32 %199 to i64
  %213 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %189, i64 noundef %212) #8
  %214 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %204) #8
  call void @_Z3updRKSt4pairIdbES2_RS0_(ptr noundef nonnull align 8 dereferenceable(9) %211, ptr noundef nonnull align 8 dereferenceable(9) %213, ptr noundef nonnull align 8 dereferenceable(9) %214)
  %215 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %212) #8
  %216 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %189, i64 noundef %210) #8
  %217 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %204) #8
  call void @_Z3updRKSt4pairIdbES2_RS0_(ptr noundef nonnull align 8 dereferenceable(9) %215, ptr noundef nonnull align 8 dereferenceable(9) %216, ptr noundef nonnull align 8 dereferenceable(9) %217)
  br label %218

218:                                              ; preds = %205, %._crit_edge187
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %219 = load i32, ptr @n, align 4, !tbaa !8
  %220 = sext i32 %219 to i64
  %221 = icmp slt i64 %indvars.iv.next167, %220
  br i1 %221, label %195, label %._crit_edge130, !llvm.loop !34

._crit_edge146:                                   ; preds = %238
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #8
  %222 = icmp eq i32 %.180, -1
  br i1 %222, label %242, label %244

.lr.ph145:                                        ; preds = %._crit_edge141, %238
  %indvars.iv181 = phi i64 [ %indvars.iv.next182, %238 ], [ 0, %._crit_edge141 ]
  %.079142 = phi i32 [ %.180, %238 ], [ -1, %._crit_edge141 ]
  %223 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef %indvars.iv181) #8
  %224 = getelementptr inbounds i8, ptr %223, i64 8
  %225 = load i8, ptr %224, align 8, !tbaa !35, !range !24, !noundef !25
  %226 = trunc nuw i8 %225 to i1
  br i1 %226, label %227, label %238

227:                                              ; preds = %.lr.ph145
  %228 = icmp eq i32 %.079142, -1
  br i1 %228, label %236, label %229

229:                                              ; preds = %227
  %230 = sext i32 %.079142 to i64
  %231 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef %230) #8
  %232 = load double, ptr %231, align 8, !tbaa !37
  %233 = call noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt6vectorISt4pairIdbESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef %indvars.iv181) #8
  %234 = load double, ptr %233, align 8, !tbaa !37
  %235 = fcmp olt double %232, %234
  br i1 %235, label %236, label %238

236:                                              ; preds = %229, %227
  %237 = trunc nuw nsw i64 %indvars.iv181 to i32
  br label %238

238:                                              ; preds = %.lr.ph145, %229, %236
  %.180 = phi i32 [ %237, %236 ], [ %.079142, %229 ], [ %.079142, %.lr.ph145 ]
  %indvars.iv.next182 = add nuw nsw i64 %indvars.iv181, 1
  %239 = call noundef i64 @_ZNKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11) #8
  %sext = shl i64 %239, 32
  %240 = ashr exact i64 %sext, 32
  %241 = icmp slt i64 %indvars.iv.next182, %240
  br i1 %241, label %.lr.ph145, label %._crit_edge146, !llvm.loop !38

242:                                              ; preds = %._crit_edge146.thread, %._crit_edge146
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %247 unwind label %.thread

.thread:                                          ; preds = %242
  %243 = landingpad { ptr, i32 }
          cleanup
  br label %260

244:                                              ; preds = %._crit_edge146
  %245 = sext i32 %.180 to i64
  %246 = call noundef nonnull align 8 dereferenceable(33) ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z3seqB5cxx11, i64 noundef %245) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %246)
          to label %247 unwind label %258

247:                                              ; preds = %244, %242
  %248 = phi i1 [ false, %244 ], [ true, %242 ]
  %249 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %250 unwind label %256

250:                                              ; preds = %247
  %251 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %249, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %252 unwind label %256

252:                                              ; preds = %250
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  br i1 %248, label %253, label %.critedge

253:                                              ; preds = %252
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #8
  br label %.critedge

.critedge:                                        ; preds = %252, %253
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #8
  %254 = load i32, ptr @t, align 4, !tbaa !8
  %255 = add nsw i32 %254, -1
  store i32 %255, ptr @t, align 4, !tbaa !8
  %.not = icmp eq i32 %254, 0
  br i1 %.not, label %._crit_edge151, label %.lr.ph150, !llvm.loop !39

256:                                              ; preds = %250, %247
  %257 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  br i1 %248, label %260, label %.critedge115

258:                                              ; preds = %244
  %259 = landingpad { ptr, i32 }
          cleanup
  br label %.critedge115

260:                                              ; preds = %.thread, %256
  %.pn196 = phi { ptr, i32 } [ %257, %256 ], [ %243, %.thread ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #8
  br label %.critedge115

.critedge115:                                     ; preds = %258, %256, %260
  %.pn195 = phi { ptr, i32 } [ %257, %256 ], [ %259, %258 ], [ %.pn196, %260 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #8
  br label %261

._crit_edge151:                                   ; preds = %.critedge, %._crit_edge
  ret i32 0

261:                                              ; preds = %134, %170, %.critedge115, %119
  %.pn109.pn.pn.pn = phi { ptr, i32 } [ %.pn109.pn.pn, %119 ], [ %.pn195, %.critedge115 ], [ %135, %134 ], [ %.pn103, %170 ]
  resume { ptr, i32 } %.pn109.pn.pn.pn
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE4findERSB_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE6insertEOSC_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbESaIS7_EE9push_backEOS7_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbEC2IRS5_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaISt4pairIdbEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIdbESaIS1_EE4swapERS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #7

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(9) ptr @_ZNSt4pairIdbEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z3updRKSt4pairIdbES2_RS0_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

; 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 #4 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)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt4pairIdbEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress norecurse 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !9, i64 32}
!12 = !{!"_ZTSSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiE", !13, i64 0, !9, i64 32}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !16, i64 8, !10, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!15 = !{!"any pointer", !10, i64 0}
!16 = !{!"long", !10, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !10, i64 0}
!19 = !{!20, !18, i64 32}
!20 = !{!"_ZTSSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbE", !13, i64 0, !18, i64 32}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!27, !27, i64 0}
!27 = !{!"double", !10, i64 0}
!28 = distinct !{!28, !22}
!29 = distinct !{!29, !22}
!30 = distinct !{!30, !22}
!31 = distinct !{!31, !22}
!32 = distinct !{!32, !22, !33}
!33 = !{!"llvm.loop.unswitch.partial.disable"}
!34 = distinct !{!34, !22}
!35 = !{!36, !18, i64 8}
!36 = !{!"_ZTSSt4pairIdbE", !27, i64 0, !18, i64 8}
!37 = !{!36, !27, i64 0}
!38 = distinct !{!38, !22}
!39 = distinct !{!39, !22}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass