; LLVM IR from eyangch/competitive-programming :: USACOcontests/silver/2019.03 (leftout)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.3 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.3 = type { i64, [8 x i8] }
%"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 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair.9" = type <{ %"class.std::vector", i32, [4 x i8] }>
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::pair.12" = type <{ %"class.std::vector", i32, [4 x i8] }>

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6calcIdiPbb(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i32 noundef, ptr noundef, i1 noundef zeroext) #0

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::basic_ifstream", align 8
  %3 = alloca %"class.std::basic_ofstream", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [1000 x %"class.std::vector"], align 16
  %10 = alloca [1000 x %"class.std::vector"], align 16
  %11 = alloca [1000 x [1000 x i8]], align 16
  %12 = alloca [1000 x [1000 x i8]], align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::unordered_map", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %21 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %22 = alloca %"struct.std::pair.9", align 8
  %23 = alloca i32, align 4
  %24 = alloca %"struct.std::pair", align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %28 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %29 = alloca %"struct.std::pair.9", align 8
  %30 = alloca %"class.std::unordered_map", align 8
  %31 = alloca i32, align 4
  %32 = alloca %"class.std::vector", align 8
  %33 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %34 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %35 = alloca %"struct.std::pair.9", align 8
  %36 = alloca i32, align 4
  %37 = alloca %"struct.std::pair", align 8
  %38 = alloca ptr, align 8
  %39 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %40 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %41 = alloca %"struct.std::pair.9", align 8
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 520, ptr %2) #7
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %2, ptr noundef @.str, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 512, ptr %3) #7
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %3, ptr noundef @.str.1, i32 noundef 16)
          to label %46 unwind label %68

46:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40000, ptr %9) #7
  %47 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %9, i32 0, i32 0
  %48 = getelementptr inbounds %"class.std::vector", ptr %47, i64 1000
  br label %49

49:                                               ; preds = %49, %46
  %50 = phi ptr [ %47, %46 ], [ %51, %49 ]
  call void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %50) #7
  %51 = getelementptr inbounds %"class.std::vector", ptr %50, i64 1
  %52 = icmp eq ptr %51, %48
  br i1 %52, label %53, label %49

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 40000, ptr %10) #7
  %54 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %10, i32 0, i32 0
  %55 = getelementptr inbounds %"class.std::vector", ptr %54, i64 1000
  br label %56

56:                                               ; preds = %56, %53
  %57 = phi ptr [ %54, %53 ], [ %58, %56 ]
  call void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %57) #7
  %58 = getelementptr inbounds %"class.std::vector", ptr %57, i64 1
  %59 = icmp eq ptr %58, %55
  br i1 %59, label %60, label %56

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 1000000, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 1000000, ptr %12) #7
  %61 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %62 unwind label %72

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %131, %62
  %64 = load i32, ptr %13, align 4, !tbaa !5
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %76, label %67

67:                                               ; preds = %63
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %135

68:                                               ; preds = %0
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %4, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %5, align 4
  br label %532

72:                                               ; preds = %60
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %4, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %5, align 4
  br label %504

76:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  %77 = 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) %2, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %78 unwind label %84

78:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %127, %78
  %80 = load i32, ptr %16, align 4, !tbaa !5
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %88, label %83

83:                                               ; preds = %79
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %130

84:                                               ; preds = %76
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %4, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %5, align 4
  br label %134

88:                                               ; preds = %79
  %89 = load i32, ptr %16, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %15, i64 noundef %90)
          to label %92 unwind label %109

92:                                               ; preds = %88
  %93 = load i8, ptr %91, align 1, !tbaa !9
  %94 = sext i8 %93 to i32
  %95 = icmp eq i32 %94, 76
  br i1 %95, label %96, label %113

96:                                               ; preds = %92
  %97 = load i32, ptr %13, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [1000 x [1000 x i8]], ptr %11, i64 0, i64 %98
  %100 = load i32, ptr %16, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [1000 x i8], ptr %99, i64 0, i64 %101
  store i8 0, ptr %102, align 1, !tbaa !10
  %103 = load i32, ptr %16, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [1000 x [1000 x i8]], ptr %12, i64 0, i64 %104
  %106 = load i32, ptr %13, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [1000 x i8], ptr %105, i64 0, i64 %107
  store i8 0, ptr %108, align 1, !tbaa !10
  br label %126

109:                                              ; preds = %88
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %4, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %134

113:                                              ; preds = %92
  %114 = load i32, ptr %13, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [1000 x [1000 x i8]], ptr %11, i64 0, i64 %115
  %117 = load i32, ptr %16, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [1000 x i8], ptr %116, i64 0, i64 %118
  store i8 1, ptr %119, align 1, !tbaa !10
  %120 = load i32, ptr %16, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [1000 x [1000 x i8]], ptr %12, i64 0, i64 %121
  %123 = load i32, ptr %13, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [1000 x i8], ptr %122, i64 0, i64 %124
  store i8 1, ptr %125, align 1, !tbaa !10
  br label %126

126:                                              ; preds = %113, %96
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %16, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %16, align 4, !tbaa !5
  br label %79, !llvm.loop !12

130:                                              ; preds = %83
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %13, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %13, align 4, !tbaa !5
  br label %63, !llvm.loop !14

134:                                              ; preds = %109, %84
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %504

135:                                              ; preds = %67
  call void @llvm.lifetime.start.p0(i64 56, ptr %17) #7
  call void @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %205, %135
  %137 = load i32, ptr %18, align 4, !tbaa !5
  %138 = load i32, ptr %6, align 4, !tbaa !5
  %139 = icmp slt i32 %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %210

141:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #7
  %142 = load i32, ptr %6, align 4, !tbaa !5
  %143 = load i32, ptr %18, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [1000 x [1000 x i8]], ptr %11, i64 0, i64 %144
  %146 = getelementptr inbounds [1000 x i8], ptr %145, i64 0, i64 0
  %147 = load i32, ptr %18, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [1000 x [1000 x i8]], ptr %11, i64 0, i64 %148
  %150 = getelementptr inbounds [1000 x i8], ptr %149, i64 0, i64 0
  %151 = load i8, ptr %150, align 8, !tbaa !10, !range !15, !noundef !16
  %152 = trunc i8 %151 to i1
  invoke void @_Z6calcIdiPbb(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %19, i32 noundef %142, ptr noundef %146, i1 noundef zeroext %152)
          to label %153 unwind label %182

153:                                              ; preds = %141
  %154 = load i32, ptr %18, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %9, i64 0, i64 %155
  %157 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIbSaIbEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(40) %156, ptr noundef nonnull align 8 dereferenceable(40) %19) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %158 = load i32, ptr %18, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %9, i64 0, i64 %159
  %161 = invoke ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(40) %160)
          to label %162 unwind label %186

162:                                              ; preds = %153
  %163 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %20, i32 0, i32 0
  %164 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %163, i32 0, i32 0
  store ptr %161, ptr %164, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %165 = call ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %17) #7
  %166 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %21, i32 0, i32 0
  %167 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %166, i32 0, i32 0
  store ptr %165, ptr %167, align 8
  %168 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKSt6vectorIbSaIbEEiELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br i1 %168, label %169, label %199

169:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 48, ptr %22) #7
  %170 = load i32, ptr %18, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %9, i64 0, i64 %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 1, ptr %23, align 4, !tbaa !5
  invoke void @_ZSt9make_pairIRSt6vectorIbSaIbEEiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind writable sret(%"struct.std::pair.9") align 8 %22, ptr noundef nonnull align 8 dereferenceable(40) %172, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %173 unwind label %190

173:                                              ; preds = %169
  %174 = invoke { ptr, i8 } @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE6insertIS7_IS2_iEEENSt9enable_ifIXsr16is_constructibleIS9_OT_EE5valueES7_INSt8__detail14_Node_iteratorIS9_Lb0ELb0EEEbEE4typeESG_(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(44) %22)
          to label %175 unwind label %194

175:                                              ; preds = %173
  %176 = getelementptr inbounds { ptr, i8 }, ptr %24, i32 0, i32 0
  %177 = extractvalue { ptr, i8 } %174, 0
  store ptr %177, ptr %176, align 8
  %178 = getelementptr inbounds { ptr, i8 }, ptr %24, i32 0, i32 1
  %179 = extractvalue { ptr, i8 } %174, 1
  store i8 %179, ptr %178, align 8
  call void @_ZNSt4pairISt6vectorIbSaIbEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %22) #7
  %180 = load i32, ptr %7, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %7, align 4, !tbaa !5
  br label %204

182:                                              ; preds = %141
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %4, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #7
  br label %209

186:                                              ; preds = %153
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %4, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %5, align 4
  br label %208

190:                                              ; preds = %169
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %4, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %5, align 4
  br label %198

194:                                              ; preds = %173
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %4, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %5, align 4
  call void @_ZNSt4pairISt6vectorIbSaIbEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %22) #7
  br label %198

198:                                              ; preds = %194, %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %22) #7
  br label %208

199:                                              ; preds = %162
  %200 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt6vectorIbSaIbEEiELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  %201 = getelementptr inbounds %"struct.std::pair.12", ptr %200, i32 0, i32 1
  %202 = load i32, ptr %201, align 8, !tbaa !17
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %201, align 8, !tbaa !17
  br label %204

204:                                              ; preds = %199, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %18, align 4, !tbaa !5
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %18, align 4, !tbaa !5
  br label %136, !llvm.loop !26

208:                                              ; preds = %198, %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %209

209:                                              ; preds = %208, %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %503

210:                                              ; preds = %140
  %211 = load i32, ptr %7, align 4, !tbaa !5
  %212 = icmp ne i32 %211, 2
  br i1 %212, label %213, label %222

213:                                              ; preds = %210
  %214 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef -1)
          to label %215 unwind label %218

215:                                              ; preds = %213
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %214, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %217 unwind label %218

217:                                              ; preds = %215
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  br label %500

218:                                              ; preds = %215, %213
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %4, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %5, align 4
  br label %503

222:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 2147483647, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  store ptr %17, ptr %26, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %223 = load ptr, ptr %26, align 8, !tbaa !27
  %224 = call ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %223) #7
  %225 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %27, i32 0, i32 0
  %226 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %225, i32 0, i32 0
  store ptr %224, ptr %226, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %227 = load ptr, ptr %26, align 8, !tbaa !27
  %228 = call ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %227) #7
  %229 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %28, i32 0, i32 0
  %230 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %229, i32 0, i32 0
  store ptr %228, ptr %230, align 8
  br label %231

231:                                              ; preds = %249, %222
  %232 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKSt6vectorIbSaIbEEiELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  br i1 %232, label %234, label %233

233:                                              ; preds = %231
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %251

234:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 48, ptr %29) #7
  %235 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt6vectorIbSaIbEEiELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  invoke void @_ZNSt4pairISt6vectorIbSaIbEEiEC2IKS2_iTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS7_S8_EEclsr6_PCCFPIS7_S8_EE26_ImplicitlyConvertiblePairIS7_S8_EEEbE4typeELb1EEERKS_IS7_S8_E(ptr noundef nonnull align 8 dereferenceable(44) %29, ptr noundef nonnull align 8 dereferenceable(44) %235)
          to label %236 unwind label %244

236:                                              ; preds = %234
  %237 = getelementptr inbounds %"struct.std::pair.9", ptr %29, i32 0, i32 1
  %238 = load i32, ptr %237, align 8, !tbaa !28
  %239 = load i32, ptr %25, align 4, !tbaa !5
  %240 = icmp slt i32 %238, %239
  br i1 %240, label %241, label %248

241:                                              ; preds = %236
  %242 = getelementptr inbounds %"struct.std::pair.9", ptr %29, i32 0, i32 1
  %243 = load i32, ptr %242, align 8, !tbaa !28
  store i32 %243, ptr %25, align 4, !tbaa !5
  br label %248

244:                                              ; preds = %234
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %4, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %499

248:                                              ; preds = %241, %236
  call void @_ZNSt4pairISt6vectorIbSaIbEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %29) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %29) #7
  br label %249

249:                                              ; preds = %248
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKSt6vectorIbSaIbEEiELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  br label %231

251:                                              ; preds = %233
  %252 = load i32, ptr %25, align 4, !tbaa !5
  %253 = icmp ne i32 %252, 1
  br i1 %253, label %254, label %263

254:                                              ; preds = %251
  %255 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef -1)
          to label %256 unwind label %259

256:                                              ; preds = %254
  %257 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %255, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %258 unwind label %259

258:                                              ; preds = %256
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  br label %498

259:                                              ; preds = %256, %254
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %4, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %5, align 4
  br label %499

263:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 56, ptr %30) #7
  call void @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %30) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %264

264:                                              ; preds = %333, %263
  %265 = load i32, ptr %31, align 4, !tbaa !5
  %266 = load i32, ptr %6, align 4, !tbaa !5
  %267 = icmp slt i32 %265, %266
  br i1 %267, label %269, label %268

268:                                              ; preds = %264
  store i32 13, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %338

269:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 40, ptr %32) #7
  %270 = load i32, ptr %6, align 4, !tbaa !5
  %271 = load i32, ptr %31, align 4, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [1000 x [1000 x i8]], ptr %12, i64 0, i64 %272
  %274 = getelementptr inbounds [1000 x i8], ptr %273, i64 0, i64 0
  %275 = load i32, ptr %31, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [1000 x [1000 x i8]], ptr %12, i64 0, i64 %276
  %278 = getelementptr inbounds [1000 x i8], ptr %277, i64 0, i64 0
  %279 = load i8, ptr %278, align 8, !tbaa !10, !range !15, !noundef !16
  %280 = trunc i8 %279 to i1
  invoke void @_Z6calcIdiPbb(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %32, i32 noundef %270, ptr noundef %274, i1 noundef zeroext %280)
          to label %281 unwind label %310

281:                                              ; preds = %269
  %282 = load i32, ptr %31, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %10, i64 0, i64 %283
  %285 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIbSaIbEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(40) %284, ptr noundef nonnull align 8 dereferenceable(40) %32) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %32) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %286 = load i32, ptr %31, align 4, !tbaa !5
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %10, i64 0, i64 %287
  %289 = invoke ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %30, ptr noundef nonnull align 8 dereferenceable(40) %288)
          to label %290 unwind label %314

290:                                              ; preds = %281
  %291 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %33, i32 0, i32 0
  %292 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %291, i32 0, i32 0
  store ptr %289, ptr %292, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %293 = call ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %17) #7
  %294 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %34, i32 0, i32 0
  %295 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %294, i32 0, i32 0
  store ptr %293, ptr %295, align 8
  %296 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKSt6vectorIbSaIbEEiELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br i1 %296, label %297, label %327

297:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 48, ptr %35) #7
  %298 = load i32, ptr %31, align 4, !tbaa !5
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %10, i64 0, i64 %299
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 1, ptr %36, align 4, !tbaa !5
  invoke void @_ZSt9make_pairIRSt6vectorIbSaIbEEiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind writable sret(%"struct.std::pair.9") align 8 %35, ptr noundef nonnull align 8 dereferenceable(40) %300, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %301 unwind label %318

301:                                              ; preds = %297
  %302 = invoke { ptr, i8 } @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE6insertIS7_IS2_iEEENSt9enable_ifIXsr16is_constructibleIS9_OT_EE5valueES7_INSt8__detail14_Node_iteratorIS9_Lb0ELb0EEEbEE4typeESG_(ptr noundef nonnull align 8 dereferenceable(56) %30, ptr noundef nonnull align 8 dereferenceable(44) %35)
          to label %303 unwind label %322

303:                                              ; preds = %301
  %304 = getelementptr inbounds { ptr, i8 }, ptr %37, i32 0, i32 0
  %305 = extractvalue { ptr, i8 } %302, 0
  store ptr %305, ptr %304, align 8
  %306 = getelementptr inbounds { ptr, i8 }, ptr %37, i32 0, i32 1
  %307 = extractvalue { ptr, i8 } %302, 1
  store i8 %307, ptr %306, align 8
  call void @_ZNSt4pairISt6vectorIbSaIbEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %35) #7
  %308 = load i32, ptr %8, align 4, !tbaa !5
  %309 = add nsw i32 %308, 1
  store i32 %309, ptr %8, align 4, !tbaa !5
  br label %332

310:                                              ; preds = %269
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %4, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %32) #7
  br label %337

314:                                              ; preds = %281
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %4, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %5, align 4
  br label %336

318:                                              ; preds = %297
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %4, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %5, align 4
  br label %326

322:                                              ; preds = %301
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %4, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %5, align 4
  call void @_ZNSt4pairISt6vectorIbSaIbEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %35) #7
  br label %326

326:                                              ; preds = %322, %318
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %35) #7
  br label %336

327:                                              ; preds = %290
  %328 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt6vectorIbSaIbEEiELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  %329 = getelementptr inbounds %"struct.std::pair.12", ptr %328, i32 0, i32 1
  %330 = load i32, ptr %329, align 8, !tbaa !17
  %331 = add nsw i32 %330, 1
  store i32 %331, ptr %329, align 8, !tbaa !17
  br label %332

332:                                              ; preds = %327, %303
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %333

333:                                              ; preds = %332
  %334 = load i32, ptr %31, align 4, !tbaa !5
  %335 = add nsw i32 %334, 1
  store i32 %335, ptr %31, align 4, !tbaa !5
  br label %264, !llvm.loop !30

336:                                              ; preds = %326, %314
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %337

337:                                              ; preds = %336, %310
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %497

338:                                              ; preds = %268
  %339 = load i32, ptr %8, align 4, !tbaa !5
  %340 = icmp ne i32 %339, 2
  br i1 %340, label %341, label %350

341:                                              ; preds = %338
  %342 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef -1)
          to label %343 unwind label %346

343:                                              ; preds = %341
  %344 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %342, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %345 unwind label %346

345:                                              ; preds = %343
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  br label %496

346:                                              ; preds = %384, %382, %343, %341
  %347 = landingpad { ptr, i32 }
          cleanup
  %348 = extractvalue { ptr, i32 } %347, 0
  store ptr %348, ptr %4, align 8
  %349 = extractvalue { ptr, i32 } %347, 1
  store i32 %349, ptr %5, align 4
  br label %497

350:                                              ; preds = %338
  store i32 2147483647, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  store ptr %30, ptr %38, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %351 = load ptr, ptr %38, align 8, !tbaa !27
  %352 = call ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %351) #7
  %353 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %39, i32 0, i32 0
  %354 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %353, i32 0, i32 0
  store ptr %352, ptr %354, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %355 = load ptr, ptr %38, align 8, !tbaa !27
  %356 = call ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %355) #7
  %357 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %40, i32 0, i32 0
  %358 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %357, i32 0, i32 0
  store ptr %356, ptr %358, align 8
  br label %359

359:                                              ; preds = %377, %350
  %360 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKSt6vectorIbSaIbEEiELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #7
  br i1 %360, label %362, label %361

361:                                              ; preds = %359
  store i32 16, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %379

362:                                              ; preds = %359
  call void @llvm.lifetime.start.p0(i64 48, ptr %41) #7
  %363 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt6vectorIbSaIbEEiELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #7
  invoke void @_ZNSt4pairISt6vectorIbSaIbEEiEC2IKS2_iTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS7_S8_EEclsr6_PCCFPIS7_S8_EE26_ImplicitlyConvertiblePairIS7_S8_EEEbE4typeELb1EEERKS_IS7_S8_E(ptr noundef nonnull align 8 dereferenceable(44) %41, ptr noundef nonnull align 8 dereferenceable(44) %363)
          to label %364 unwind label %372

364:                                              ; preds = %362
  %365 = getelementptr inbounds %"struct.std::pair.9", ptr %41, i32 0, i32 1
  %366 = load i32, ptr %365, align 8, !tbaa !28
  %367 = load i32, ptr %25, align 4, !tbaa !5
  %368 = icmp slt i32 %366, %367
  br i1 %368, label %369, label %376

369:                                              ; preds = %364
  %370 = getelementptr inbounds %"struct.std::pair.9", ptr %41, i32 0, i32 1
  %371 = load i32, ptr %370, align 8, !tbaa !28
  store i32 %371, ptr %25, align 4, !tbaa !5
  br label %376

372:                                              ; preds = %362
  %373 = landingpad { ptr, i32 }
          cleanup
  %374 = extractvalue { ptr, i32 } %373, 0
  store ptr %374, ptr %4, align 8
  %375 = extractvalue { ptr, i32 } %373, 1
  store i32 %375, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %497

376:                                              ; preds = %369, %364
  call void @_ZNSt4pairISt6vectorIbSaIbEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %41) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %41) #7
  br label %377

377:                                              ; preds = %376
  %378 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKSt6vectorIbSaIbEEiELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #7
  br label %359

379:                                              ; preds = %361
  %380 = load i32, ptr %25, align 4, !tbaa !5
  %381 = icmp ne i32 %380, 1
  br i1 %381, label %382, label %387

382:                                              ; preds = %379
  %383 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef -1)
          to label %384 unwind label %346

384:                                              ; preds = %382
  %385 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %383, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %386 unwind label %346

386:                                              ; preds = %384
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  br label %496

387:                                              ; preds = %379
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  %388 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %9, i64 0, i64 0
  %389 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %9, i64 0, i64 1
  %390 = invoke noundef zeroext i1 @_ZStneIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %388, ptr noundef nonnull align 8 dereferenceable(40) %389)
          to label %391 unwind label %398

391:                                              ; preds = %387
  br i1 %390, label %392, label %409

392:                                              ; preds = %391
  %393 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %9, i64 0, i64 0
  %394 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %9, i64 0, i64 2
  %395 = invoke noundef zeroext i1 @_ZSteqIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %393, ptr noundef nonnull align 8 dereferenceable(40) %394)
          to label %396 unwind label %398

396:                                              ; preds = %392
  br i1 %395, label %397, label %402

397:                                              ; preds = %396
  store i32 1, ptr %42, align 4, !tbaa !5
  br label %402

398:                                              ; preds = %438, %434, %402, %392, %387
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %4, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %5, align 4
  br label %495

402:                                              ; preds = %397, %396
  %403 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %9, i64 0, i64 1
  %404 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %9, i64 0, i64 2
  %405 = invoke noundef zeroext i1 @_ZSteqIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %403, ptr noundef nonnull align 8 dereferenceable(40) %404)
          to label %406 unwind label %398

406:                                              ; preds = %402
  br i1 %405, label %407, label %408

407:                                              ; preds = %406
  store i32 0, ptr %42, align 4, !tbaa !5
  br label %408

408:                                              ; preds = %407, %406
  br label %434

409:                                              ; preds = %391
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  store i32 2, ptr %43, align 4, !tbaa !5
  br label %410

410:                                              ; preds = %429, %409
  %411 = load i32, ptr %43, align 4, !tbaa !5
  %412 = load i32, ptr %6, align 4, !tbaa !5
  %413 = icmp slt i32 %411, %412
  br i1 %413, label %415, label %414

414:                                              ; preds = %410
  store i32 18, ptr %14, align 4
  br label %432

415:                                              ; preds = %410
  %416 = load i32, ptr %43, align 4, !tbaa !5
  %417 = sext i32 %416 to i64
  %418 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %9, i64 0, i64 %417
  %419 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %9, i64 0, i64 0
  %420 = invoke noundef zeroext i1 @_ZStneIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %418, ptr noundef nonnull align 8 dereferenceable(40) %419)
          to label %421 unwind label %424

421:                                              ; preds = %415
  br i1 %420, label %422, label %428

422:                                              ; preds = %421
  %423 = load i32, ptr %43, align 4, !tbaa !5
  store i32 %423, ptr %42, align 4, !tbaa !5
  store i32 18, ptr %14, align 4
  br label %432

424:                                              ; preds = %415
  %425 = landingpad { ptr, i32 }
          cleanup
  %426 = extractvalue { ptr, i32 } %425, 0
  store ptr %426, ptr %4, align 8
  %427 = extractvalue { ptr, i32 } %425, 1
  store i32 %427, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  br label %495

428:                                              ; preds = %421
  br label %429

429:                                              ; preds = %428
  %430 = load i32, ptr %43, align 4, !tbaa !5
  %431 = add nsw i32 %430, 1
  store i32 %431, ptr %43, align 4, !tbaa !5
  br label %410, !llvm.loop !31

432:                                              ; preds = %422, %414
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  br label %433

433:                                              ; preds = %432
  br label %434

434:                                              ; preds = %433, %408
  %435 = load i32, ptr %42, align 4, !tbaa !5
  %436 = add nsw i32 %435, 1
  %437 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %436)
          to label %438 unwind label %398

438:                                              ; preds = %434
  %439 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %437, ptr noundef @.str.2)
          to label %440 unwind label %398

440:                                              ; preds = %438
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  %441 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %10, i64 0, i64 0
  %442 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %10, i64 0, i64 1
  %443 = invoke noundef zeroext i1 @_ZStneIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %441, ptr noundef nonnull align 8 dereferenceable(40) %442)
          to label %444 unwind label %451

444:                                              ; preds = %440
  br i1 %443, label %445, label %462

445:                                              ; preds = %444
  %446 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %10, i64 0, i64 0
  %447 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %10, i64 0, i64 2
  %448 = invoke noundef zeroext i1 @_ZSteqIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %446, ptr noundef nonnull align 8 dereferenceable(40) %447)
          to label %449 unwind label %451

449:                                              ; preds = %445
  br i1 %448, label %450, label %455

450:                                              ; preds = %449
  store i32 1, ptr %44, align 4, !tbaa !5
  br label %455

451:                                              ; preds = %491, %487, %455, %445, %440
  %452 = landingpad { ptr, i32 }
          cleanup
  %453 = extractvalue { ptr, i32 } %452, 0
  store ptr %453, ptr %4, align 8
  %454 = extractvalue { ptr, i32 } %452, 1
  store i32 %454, ptr %5, align 4
  br label %494

455:                                              ; preds = %450, %449
  %456 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %10, i64 0, i64 1
  %457 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %10, i64 0, i64 2
  %458 = invoke noundef zeroext i1 @_ZSteqIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %456, ptr noundef nonnull align 8 dereferenceable(40) %457)
          to label %459 unwind label %451

459:                                              ; preds = %455
  br i1 %458, label %460, label %461

460:                                              ; preds = %459
  store i32 0, ptr %44, align 4, !tbaa !5
  br label %461

461:                                              ; preds = %460, %459
  br label %487

462:                                              ; preds = %444
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #7
  store i32 2, ptr %45, align 4, !tbaa !5
  br label %463

463:                                              ; preds = %482, %462
  %464 = load i32, ptr %45, align 4, !tbaa !5
  %465 = load i32, ptr %6, align 4, !tbaa !5
  %466 = icmp slt i32 %464, %465
  br i1 %466, label %468, label %467

467:                                              ; preds = %463
  store i32 21, ptr %14, align 4
  br label %485

468:                                              ; preds = %463
  %469 = load i32, ptr %45, align 4, !tbaa !5
  %470 = sext i32 %469 to i64
  %471 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %10, i64 0, i64 %470
  %472 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %10, i64 0, i64 0
  %473 = invoke noundef zeroext i1 @_ZStneIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %471, ptr noundef nonnull align 8 dereferenceable(40) %472)
          to label %474 unwind label %477

474:                                              ; preds = %468
  br i1 %473, label %475, label %481

475:                                              ; preds = %474
  %476 = load i32, ptr %45, align 4, !tbaa !5
  store i32 %476, ptr %44, align 4, !tbaa !5
  store i32 21, ptr %14, align 4
  br label %485

477:                                              ; preds = %468
  %478 = landingpad { ptr, i32 }
          cleanup
  %479 = extractvalue { ptr, i32 } %478, 0
  store ptr %479, ptr %4, align 8
  %480 = extractvalue { ptr, i32 } %478, 1
  store i32 %480, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  br label %494

481:                                              ; preds = %474
  br label %482

482:                                              ; preds = %481
  %483 = load i32, ptr %45, align 4, !tbaa !5
  %484 = add nsw i32 %483, 1
  store i32 %484, ptr %45, align 4, !tbaa !5
  br label %463, !llvm.loop !32

485:                                              ; preds = %475, %467
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  br label %486

486:                                              ; preds = %485
  br label %487

487:                                              ; preds = %486, %461
  %488 = load i32, ptr %44, align 4, !tbaa !5
  %489 = add nsw i32 %488, 1
  %490 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %489)
          to label %491 unwind label %451

491:                                              ; preds = %487
  %492 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %490, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %493 unwind label %451

493:                                              ; preds = %491
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  br label %496

494:                                              ; preds = %477, %451
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %495

495:                                              ; preds = %494, %424, %398
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  br label %497

496:                                              ; preds = %493, %386, %345
  call void @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %30) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %30) #7
  br label %498

497:                                              ; preds = %495, %372, %346, %337
  call void @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %30) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %30) #7
  br label %499

498:                                              ; preds = %496, %258
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %500

499:                                              ; preds = %497, %259, %244
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %503

500:                                              ; preds = %498, %217
  call void @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 1000000, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1000000, ptr %11) #7
  %501 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %10, i32 0, i32 0
  %502 = getelementptr inbounds %"class.std::vector", ptr %501, i64 1000
  br label %507

503:                                              ; preds = %499, %218, %209
  call void @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %17) #7
  br label %504

504:                                              ; preds = %503, %134, %72
  call void @llvm.lifetime.end.p0(i64 1000000, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1000000, ptr %11) #7
  %505 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %10, i32 0, i32 0
  %506 = getelementptr inbounds %"class.std::vector", ptr %505, i64 1000
  br label %514

507:                                              ; preds = %507, %500
  %508 = phi ptr [ %502, %500 ], [ %509, %507 ]
  %509 = getelementptr inbounds %"class.std::vector", ptr %508, i64 -1
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %509) #7
  %510 = icmp eq ptr %509, %501
  br i1 %510, label %511, label %507

511:                                              ; preds = %507
  call void @llvm.lifetime.end.p0(i64 40000, ptr %10) #7
  %512 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %9, i32 0, i32 0
  %513 = getelementptr inbounds %"class.std::vector", ptr %512, i64 1000
  br label %521

514:                                              ; preds = %514, %504
  %515 = phi ptr [ %506, %504 ], [ %516, %514 ]
  %516 = getelementptr inbounds %"class.std::vector", ptr %515, i64 -1
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %516) #7
  %517 = icmp eq ptr %516, %505
  br i1 %517, label %518, label %514

518:                                              ; preds = %514
  call void @llvm.lifetime.end.p0(i64 40000, ptr %10) #7
  %519 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %9, i32 0, i32 0
  %520 = getelementptr inbounds %"class.std::vector", ptr %519, i64 1000
  br label %527

521:                                              ; preds = %521, %511
  %522 = phi ptr [ %513, %511 ], [ %523, %521 ]
  %523 = getelementptr inbounds %"class.std::vector", ptr %522, i64 -1
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %523) #7
  %524 = icmp eq ptr %523, %512
  br i1 %524, label %525, label %521

525:                                              ; preds = %521
  call void @llvm.lifetime.end.p0(i64 40000, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #7
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #7
  call void @llvm.lifetime.end.p0(i64 520, ptr %2) #7
  %526 = load i32, ptr %1, align 4
  ret i32 %526

527:                                              ; preds = %527, %518
  %528 = phi ptr [ %520, %518 ], [ %529, %527 ]
  %529 = getelementptr inbounds %"class.std::vector", ptr %528, i64 -1
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %529) #7
  %530 = icmp eq ptr %529, %519
  br i1 %530, label %531, label %527

531:                                              ; preds = %527
  call void @llvm.lifetime.end.p0(i64 40000, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #7
  br label %532

532:                                              ; preds = %531, %68
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #7
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #7
  call void @llvm.lifetime.end.p0(i64 520, ptr %2) #7
  br label %533

533:                                              ; preds = %532
  %534 = load ptr, ptr %4, align 8
  %535 = load i32, ptr %5, align 4
  %536 = insertvalue { ptr, i32 } poison, ptr %534, 0
  %537 = insertvalue { ptr, i32 } %536, i32 %535, 1
  resume { ptr, i32 } %537
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 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)) #4

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

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

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

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

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 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 ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairISt6vectorIbSaIbEEiEC2IKS2_iTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS7_S8_EEclsr6_PCCFPIS7_S8_EE26_ImplicitlyConvertiblePairIS7_S8_EEEbE4typeELb1EEERKS_IS7_S8_E(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #0 align 2

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

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

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"bool", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !6, i64 40}
!18 = !{!"_ZTSSt4pairIKSt6vectorIbSaIbEEiE", !19, i64 0, !6, i64 40}
!19 = !{!"_ZTSSt6vectorIbSaIbEE", !20, i64 0}
!20 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !21, i64 0}
!21 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !23, i64 0, !23, i64 16, !25, i64 32}
!23 = !{!"_ZTSSt13_Bit_iterator", !24, i64 0}
!24 = !{!"_ZTSSt18_Bit_iterator_base", !25, i64 0, !6, i64 8}
!25 = !{!"any pointer", !7, i64 0}
!26 = distinct !{!26, !13}
!27 = !{!25, !25, i64 0}
!28 = !{!29, !6, i64 40}
!29 = !{!"_ZTSSt4pairISt6vectorIbSaIbEEiE", !19, i64 0, !6, i64 40}
!30 = distinct !{!30, !13}
!31 = distinct !{!31, !13}
!32 = distinct !{!32, !13}


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

%"class.std::vector" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.3 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.3 = type { i64, [8 x i8] }
%"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 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair.9" = type <{ %"class.std::vector", i32, [4 x i8] }>

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6calcIdiPbb(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i32 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #0

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::basic_ifstream", align 8
  %2 = alloca %"class.std::basic_ofstream", align 8
  %3 = alloca i32, align 4
  %4 = alloca [1000 x %"class.std::vector"], align 16
  %5 = alloca [1000 x %"class.std::vector"], align 16
  %6 = alloca [1000 x [1000 x i8]], align 16
  %7 = alloca [1000 x [1000 x i8]], align 16
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::unordered_map", align 8
  %10 = alloca %"class.std::vector", 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.9", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %16 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %17 = alloca %"struct.std::pair.9", align 8
  %18 = alloca %"class.std::unordered_map", align 8
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %21 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %22 = alloca %"struct.std::pair.9", align 8
  %23 = alloca i32, align 4
  %24 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %25 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %26 = alloca %"struct.std::pair.9", align 8
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %1) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %1, ptr noundef nonnull @.str, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %2) #8
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %2, ptr noundef nonnull @.str.1, i32 noundef 16)
          to label %27 unwind label %41

27:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 40000, ptr nonnull %4) #8
  br label %28

28:                                               ; preds = %28, %27
  %.idx = phi i64 [ 0, %27 ], [ %.add, %28 ]
  %.ptr = getelementptr inbounds i8, ptr %4, i64 %.idx
  call void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr) #8
  %.add = add nuw nsw i64 %.idx, 40
  %29 = icmp eq i64 %.add, 40000
  br i1 %29, label %30, label %28

30:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 40000, ptr nonnull %5) #8
  br label %31

31:                                               ; preds = %31, %30
  %.idx97 = phi i64 [ 0, %30 ], [ %.add98, %31 ]
  %.ptr99 = getelementptr inbounds i8, ptr %5, i64 %.idx97
  call void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr99) #8
  %.add98 = add nuw nsw i64 %.idx97, 40
  %32 = icmp eq i64 %.add98, 40000
  br i1 %32, label %33, label %31

33:                                               ; preds = %31
  %34 = getelementptr inbounds i8, ptr %4, i64 40000
  %35 = getelementptr inbounds i8, ptr %5, i64 40000
  call void @llvm.lifetime.start.p0(i64 1000000, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1000000, ptr nonnull %7) #8
  %36 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %.preheader126 unwind label %43

.preheader126:                                    ; preds = %33
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %.lr.ph141, label %._crit_edge142

._crit_edge142:                                   ; preds = %._crit_edge, %.preheader126
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9) #8
  call void @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #8
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph146, label %._crit_edge147.thread

41:                                               ; preds = %0
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %254

43:                                               ; preds = %33
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %233

.lr.ph141:                                        ; preds = %.preheader126, %._crit_edge
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %._crit_edge ], [ 0, %.preheader126 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  %45 = 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) %1, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %.preheader125 unwind label %51

.preheader125:                                    ; preds = %.lr.ph141
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.preheader125
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = icmp slt i64 %indvars.iv.next177, %49
  br i1 %50, label %.lr.ph141, label %._crit_edge142, !llvm.loop !9

51:                                               ; preds = %.lr.ph141
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %233

.lr.ph:                                           ; preds = %.preheader125, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader125 ]
  %53 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %indvars.iv)
  %54 = load i8, ptr %53, align 1, !tbaa !11
  %55 = icmp ne i8 %54, 76
  %spec.select201 = zext i1 %55 to i8
  %56 = getelementptr inbounds [1000 x [1000 x i8]], ptr %6, i64 0, i64 %indvars.iv176, i64 %indvars.iv
  store i8 %spec.select201, ptr %56, align 1
  %57 = getelementptr inbounds [1000 x [1000 x i8]], ptr %7, i64 0, i64 %indvars.iv, i64 %indvars.iv176
  store i8 %spec.select201, ptr %57, align 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %58 = load i32, ptr %3, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = icmp slt i64 %indvars.iv.next, %59
  br i1 %60, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge147:                                   ; preds = %91
  %.not = icmp eq i32 %.179, 2
  br i1 %.not, label %101, label %._crit_edge147.thread

.lr.ph146:                                        ; preds = %._crit_edge142, %91
  %indvars.iv179 = phi i64 [ %indvars.iv.next180, %91 ], [ 0, %._crit_edge142 ]
  %61 = phi i32 [ %92, %91 ], [ %39, %._crit_edge142 ]
  %.078144 = phi i32 [ %.179, %91 ], [ 0, %._crit_edge142 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #8
  %62 = getelementptr inbounds [1000 x [1000 x i8]], ptr %6, i64 0, i64 %indvars.iv179
  %63 = load i8, ptr %62, align 8, !tbaa !13, !range !15, !noundef !16
  %64 = trunc nuw i8 %63 to i1
  invoke void @_Z6calcIdiPbb(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %10, i32 noundef %61, ptr noundef nonnull %62, i1 noundef zeroext %64)
          to label %65 unwind label %77

65:                                               ; preds = %.lr.ph146
  %66 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %4, i64 0, i64 %indvars.iv179
  %67 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIbSaIbEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(40) %66, ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %68 = invoke ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 8 dereferenceable(40) %66)
          to label %69 unwind label %79

69:                                               ; preds = %65
  store ptr %68, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %70 = call ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %9) #8
  store ptr %70, ptr %12, align 8
  %71 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKSt6vectorIbSaIbEEiELb0EEES9_(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 %71, label %72, label %86

72:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  store i32 1, ptr %14, align 4, !tbaa !5
  invoke void @_ZSt9make_pairIRSt6vectorIbSaIbEEiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.9") align 8 %13, ptr noundef nonnull align 8 dereferenceable(40) %66, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %73 unwind label %81

73:                                               ; preds = %72
  %74 = invoke { ptr, i8 } @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE6insertIS7_IS2_iEEENSt9enable_ifIXsr16is_constructibleIS9_OT_EE5valueES7_INSt8__detail14_Node_iteratorIS9_Lb0ELb0EEEbEE4typeESG_(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 8 dereferenceable(44) %13)
          to label %75 unwind label %83

75:                                               ; preds = %73
  call void @_ZNSt4pairISt6vectorIbSaIbEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #8
  %76 = add nsw i32 %.078144, 1
  br label %91

77:                                               ; preds = %.lr.ph146
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #8
  br label %232

79:                                               ; preds = %65
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %95

81:                                               ; preds = %72
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %85

83:                                               ; preds = %73
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairISt6vectorIbSaIbEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %13) #8
  br label %85

85:                                               ; preds = %83, %81
  %.pn113 = phi { ptr, i32 } [ %84, %83 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #8
  br label %95

86:                                               ; preds = %69
  %87 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt6vectorIbSaIbEEiELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %88 = getelementptr inbounds i8, ptr %87, i64 40
  %89 = load i32, ptr %88, align 8, !tbaa !17
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %88, align 8, !tbaa !17
  br label %91

91:                                               ; preds = %86, %75
  %.179 = phi i32 [ %76, %75 ], [ %.078144, %86 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %92 = load i32, ptr %3, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = icmp slt i64 %indvars.iv.next180, %93
  br i1 %94, label %.lr.ph146, label %._crit_edge147, !llvm.loop !26

95:                                               ; preds = %85, %79
  %.pn113.pn = phi { ptr, i32 } [ %.pn113, %85 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %232

._crit_edge147.thread:                            ; preds = %._crit_edge142, %._crit_edge147
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef -1)
          to label %97 unwind label %99

97:                                               ; preds = %._crit_edge147.thread
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %231 unwind label %99

99:                                               ; preds = %97, %._crit_edge147.thread
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %232

101:                                              ; preds = %._crit_edge147
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %102 = call ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %9) #8
  store ptr %102, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  %103 = call ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %9) #8
  store ptr %103, ptr %16, align 8
  %104 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKSt6vectorIbSaIbEEiELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br i1 %104, label %.lr.ph150, label %._crit_edge151.thread

._crit_edge151.thread:                            ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %114

.lr.ph150:                                        ; preds = %101
  %105 = getelementptr inbounds i8, ptr %17, i64 40
  br label %106

._crit_edge151:                                   ; preds = %108
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  %.not101 = icmp eq i32 %spec.select, 1
  br i1 %.not101, label %120, label %114

106:                                              ; preds = %.lr.ph150, %108
  %.080148 = phi i32 [ 2147483647, %.lr.ph150 ], [ %spec.select, %108 ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %17) #8
  %107 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt6vectorIbSaIbEEiELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  invoke void @_ZNSt4pairISt6vectorIbSaIbEEiEC2IKS2_iTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS7_S8_EEclsr6_PCCFPIS7_S8_EE26_ImplicitlyConvertiblePairIS7_S8_EEEbE4typeELb1EEERKS_IS7_S8_E(ptr noundef nonnull align 8 dereferenceable(44) %17, ptr noundef nonnull align 8 dereferenceable(44) %107)
          to label %108 unwind label %112

108:                                              ; preds = %106
  %109 = load i32, ptr %105, align 8, !tbaa !27
  %spec.select = call i32 @llvm.smin.i32(i32 %109, i32 %.080148)
  call void @_ZNSt4pairISt6vectorIbSaIbEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %17) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #8
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKSt6vectorIbSaIbEEiELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %111 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKSt6vectorIbSaIbEEiELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br i1 %111, label %106, label %._crit_edge151

112:                                              ; preds = %106
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %232

114:                                              ; preds = %._crit_edge151.thread, %._crit_edge151
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef -1)
          to label %116 unwind label %118

116:                                              ; preds = %114
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %231 unwind label %118

118:                                              ; preds = %116, %114
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %232

120:                                              ; preds = %._crit_edge151
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %18) #8
  call void @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #8
  %121 = load i32, ptr %3, align 4, !tbaa !5
  %122 = icmp sgt i32 %121, 0
  br i1 %122, label %.lr.ph156, label %.invoke202

._crit_edge157:                                   ; preds = %153
  %.not102 = icmp eq i32 %.185, 2
  br i1 %.not102, label %160, label %.invoke202

.lr.ph156:                                        ; preds = %120, %153
  %indvars.iv182 = phi i64 [ %indvars.iv.next183, %153 ], [ 0, %120 ]
  %123 = phi i32 [ %154, %153 ], [ %121, %120 ]
  %.084153 = phi i32 [ %.185, %153 ], [ 0, %120 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %19) #8
  %124 = getelementptr inbounds [1000 x [1000 x i8]], ptr %7, i64 0, i64 %indvars.iv182
  %125 = load i8, ptr %124, align 8, !tbaa !13, !range !15, !noundef !16
  %126 = trunc nuw i8 %125 to i1
  invoke void @_Z6calcIdiPbb(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %19, i32 noundef %123, ptr noundef nonnull %124, i1 noundef zeroext %126)
          to label %127 unwind label %139

127:                                              ; preds = %.lr.ph156
  %128 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %5, i64 0, i64 %indvars.iv182
  %129 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIbSaIbEEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(40) %128, ptr noundef nonnull align 8 dereferenceable(40) %19) #8
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #8
  %130 = invoke ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(40) %128)
          to label %131 unwind label %141

131:                                              ; preds = %127
  store ptr %130, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #8
  %132 = call ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %9) #8
  store ptr %132, ptr %21, align 8
  %133 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKSt6vectorIbSaIbEEiELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #8
  br i1 %133, label %134, label %148

134:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %22) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #8
  store i32 1, ptr %23, align 4, !tbaa !5
  invoke void @_ZSt9make_pairIRSt6vectorIbSaIbEEiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.9") align 8 %22, ptr noundef nonnull align 8 dereferenceable(40) %128, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %135 unwind label %143

135:                                              ; preds = %134
  %136 = invoke { ptr, i8 } @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE6insertIS7_IS2_iEEENSt9enable_ifIXsr16is_constructibleIS9_OT_EE5valueES7_INSt8__detail14_Node_iteratorIS9_Lb0ELb0EEEbEE4typeESG_(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(44) %22)
          to label %137 unwind label %145

137:                                              ; preds = %135
  call void @_ZNSt4pairISt6vectorIbSaIbEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #8
  %138 = add nsw i32 %.084153, 1
  br label %153

139:                                              ; preds = %.lr.ph156
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #8
  br label %230

141:                                              ; preds = %127
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %157

143:                                              ; preds = %134
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %147

145:                                              ; preds = %135
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairISt6vectorIbSaIbEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %22) #8
  br label %147

147:                                              ; preds = %145, %143
  %.pn106 = phi { ptr, i32 } [ %146, %145 ], [ %144, %143 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #8
  br label %157

148:                                              ; preds = %131
  %149 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt6vectorIbSaIbEEiELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  %150 = getelementptr inbounds i8, ptr %149, i64 40
  %151 = load i32, ptr %150, align 8, !tbaa !17
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %150, align 8, !tbaa !17
  br label %153

153:                                              ; preds = %148, %137
  %.185 = phi i32 [ %138, %137 ], [ %.084153, %148 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  %indvars.iv.next183 = add nuw nsw i64 %indvars.iv182, 1
  %154 = load i32, ptr %3, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = icmp slt i64 %indvars.iv.next183, %155
  br i1 %156, label %.lr.ph156, label %._crit_edge157, !llvm.loop !29

157:                                              ; preds = %147, %141
  %.pn106.pn = phi { ptr, i32 } [ %.pn106, %147 ], [ %142, %141 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #8
  br label %230

158:                                              ; preds = %.invoke202, %.invoke
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %230

160:                                              ; preds = %._crit_edge157
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #8
  %161 = call ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %18) #8
  store ptr %161, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #8
  %162 = call ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %18) #8
  store ptr %162, ptr %25, align 8
  %163 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKSt6vectorIbSaIbEEiELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  br i1 %163, label %.lr.ph161, label %._crit_edge162.thread

._crit_edge162.thread:                            ; preds = %160
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  br label %.invoke202

.lr.ph161:                                        ; preds = %160
  %164 = getelementptr inbounds i8, ptr %26, i64 40
  br label %165

._crit_edge162:                                   ; preds = %167
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  %.not103 = icmp eq i32 %spec.select121, 1
  br i1 %.not103, label %175, label %.invoke202

165:                                              ; preds = %.lr.ph161, %167
  %.282159 = phi i32 [ 2147483647, %.lr.ph161 ], [ %spec.select121, %167 ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %26) #8
  %166 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKSt6vectorIbSaIbEEiELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  invoke void @_ZNSt4pairISt6vectorIbSaIbEEiEC2IKS2_iTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS7_S8_EEclsr6_PCCFPIS7_S8_EE26_ImplicitlyConvertiblePairIS7_S8_EEEbE4typeELb1EEERKS_IS7_S8_E(ptr noundef nonnull align 8 dereferenceable(44) %26, ptr noundef nonnull align 8 dereferenceable(44) %166)
          to label %167 unwind label %171

167:                                              ; preds = %165
  %168 = load i32, ptr %164, align 8, !tbaa !27
  %spec.select121 = call i32 @llvm.smin.i32(i32 %168, i32 %.282159)
  call void @_ZNSt4pairISt6vectorIbSaIbEEiED2Ev(ptr noundef nonnull align 8 dereferenceable(44) %26) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %26) #8
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKSt6vectorIbSaIbEEiELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  %170 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKSt6vectorIbSaIbEEiELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  br i1 %170, label %165, label %._crit_edge162

171:                                              ; preds = %165
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  br label %230

.invoke202:                                       ; preds = %._crit_edge157, %120, %._crit_edge162, %._crit_edge162.thread
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef -1)
          to label %.invoke unwind label %158

.invoke:                                          ; preds = %.invoke202
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %229 unwind label %158

175:                                              ; preds = %._crit_edge162
  %176 = getelementptr inbounds i8, ptr %4, i64 40
  %177 = invoke noundef zeroext i1 @_ZStneIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(40) %176)
          to label %178 unwind label %186

178:                                              ; preds = %175
  br i1 %177, label %181, label %.preheader124

.preheader124:                                    ; preds = %178
  %179 = load i32, ptr %3, align 4, !tbaa !5
  %180 = icmp sgt i32 %179, 2
  br i1 %180, label %.lr.ph165, label %.loopexit

181:                                              ; preds = %178
  %182 = getelementptr inbounds i8, ptr %4, i64 80
  %183 = invoke noundef zeroext i1 @_ZSteqIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(40) %182)
          to label %184 unwind label %186

184:                                              ; preds = %181
  %185 = invoke noundef zeroext i1 @_ZSteqIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %176, ptr noundef nonnull align 8 dereferenceable(40) %182)
          to label %188 unwind label %186

186:                                              ; preds = %200, %.loopexit, %184, %181, %175
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %230

188:                                              ; preds = %184
  %not. = xor i1 %185, true
  %spec.select122 = zext i1 %not. to i32
  br label %.loopexit

.lr.ph165:                                        ; preds = %.preheader124, %194
  %indvars.iv185 = phi i64 [ %indvars.iv.next186, %194 ], [ 2, %.preheader124 ]
  %189 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %4, i64 0, i64 %indvars.iv185
  %190 = invoke noundef zeroext i1 @_ZStneIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %189, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %191 unwind label %192

191:                                              ; preds = %.lr.ph165
  br i1 %190, label %.loopexit.loopexit, label %194

192:                                              ; preds = %.lr.ph165
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %230

194:                                              ; preds = %191
  %indvars.iv.next186 = add nuw nsw i64 %indvars.iv185, 1
  %195 = load i32, ptr %3, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = icmp slt i64 %indvars.iv.next186, %196
  br i1 %197, label %.lr.ph165, label %.loopexit.loopexit, !llvm.loop !30

.loopexit.loopexit:                               ; preds = %194, %191
  %.257.ph.in = phi i64 [ %indvars.iv.next186, %194 ], [ %indvars.iv185, %191 ]
  %.257.ph = trunc i64 %.257.ph.in to i32
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.preheader124, %188
  %.257 = phi i32 [ %spec.select122, %188 ], [ 2, %.preheader124 ], [ %.257.ph, %.loopexit.loopexit ]
  %198 = add nuw nsw i32 %.257, 1
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %198)
          to label %200 unwind label %186

200:                                              ; preds = %.loopexit
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %199, ptr noundef nonnull @.str.2)
          to label %202 unwind label %186

202:                                              ; preds = %200
  %203 = getelementptr inbounds i8, ptr %5, i64 40
  %204 = invoke noundef zeroext i1 @_ZStneIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(40) %203)
          to label %205 unwind label %213

205:                                              ; preds = %202
  br i1 %204, label %208, label %.preheader

.preheader:                                       ; preds = %205
  %206 = load i32, ptr %3, align 4, !tbaa !5
  %207 = icmp sgt i32 %206, 2
  br i1 %207, label %.lr.ph170, label %._crit_edge171

208:                                              ; preds = %205
  %209 = getelementptr inbounds i8, ptr %5, i64 80
  %210 = invoke noundef zeroext i1 @_ZSteqIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(40) %209)
          to label %211 unwind label %213

211:                                              ; preds = %208
  %212 = invoke noundef zeroext i1 @_ZSteqIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %203, ptr noundef nonnull align 8 dereferenceable(40) %209)
          to label %215 unwind label %213

213:                                              ; preds = %227, %._crit_edge171, %211, %208, %202
  %214 = landingpad { ptr, i32 }
          cleanup
  br label %230

215:                                              ; preds = %211
  %spec.select123 = select i1 %212, i32 1, i32 2
  br label %._crit_edge171

.lr.ph170:                                        ; preds = %.preheader, %221
  %indvars.iv188 = phi i64 [ %indvars.iv.next189, %221 ], [ 2, %.preheader ]
  %216 = getelementptr inbounds [1000 x %"class.std::vector"], ptr %5, i64 0, i64 %indvars.iv188
  %217 = invoke noundef zeroext i1 @_ZStneIbSaIbEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(40) %216, ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %218 unwind label %219

218:                                              ; preds = %.lr.ph170
  br i1 %217, label %._crit_edge171.loopexit, label %221

219:                                              ; preds = %.lr.ph170
  %220 = landingpad { ptr, i32 }
          cleanup
  br label %230

221:                                              ; preds = %218
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %222 = load i32, ptr %3, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = icmp slt i64 %indvars.iv.next189, %223
  br i1 %224, label %.lr.ph170, label %._crit_edge171.loopexit, !llvm.loop !31

._crit_edge171.loopexit:                          ; preds = %218, %221
  %.0.lcssa.ph.in = phi i64 [ %indvars.iv.next189, %221 ], [ %indvars.iv188, %218 ]
  %.0.lcssa.ph = trunc i64 %.0.lcssa.ph.in to i32
  %225 = add nuw nsw i32 %.0.lcssa.ph, 1
  br label %._crit_edge171

._crit_edge171:                                   ; preds = %.preheader, %._crit_edge171.loopexit, %215
  %.2 = phi i32 [ %spec.select123, %215 ], [ 3, %.preheader ], [ %225, %._crit_edge171.loopexit ]
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %.2)
          to label %227 unwind label %213

227:                                              ; preds = %._crit_edge171
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %229 unwind label %213

229:                                              ; preds = %.invoke, %227
  call void @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #8
  br label %231

230:                                              ; preds = %186, %192, %219, %213, %139, %157, %171, %158
  %.pn106.pn.pn.pn = phi { ptr, i32 } [ %159, %158 ], [ %172, %171 ], [ %.pn106.pn, %157 ], [ %140, %139 ], [ %187, %186 ], [ %193, %192 ], [ %214, %213 ], [ %220, %219 ]
  call void @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %18) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %18) #8
  br label %232

231:                                              ; preds = %229, %116, %97
  call void @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 1000000, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 1000000, ptr nonnull %6) #8
  br label %234

232:                                              ; preds = %112, %118, %230, %77, %95, %99
  %.pn113.pn.pn.pn = phi { ptr, i32 } [ %100, %99 ], [ %.pn113.pn, %95 ], [ %78, %77 ], [ %113, %112 ], [ %119, %118 ], [ %.pn106.pn.pn.pn, %230 ]
  call void @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #8
  br label %233

233:                                              ; preds = %232, %51, %43
  %.pn118 = phi { ptr, i32 } [ %52, %51 ], [ %.pn113.pn.pn.pn, %232 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 1000000, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 1000000, ptr nonnull %6) #8
  br label %239

234:                                              ; preds = %234, %231
  %235 = phi ptr [ %35, %231 ], [ %236, %234 ]
  %236 = getelementptr inbounds i8, ptr %235, i64 -40
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %236) #8
  %237 = icmp eq ptr %236, %5
  br i1 %237, label %238, label %234

238:                                              ; preds = %234
  call void @llvm.lifetime.end.p0(i64 40000, ptr nonnull %5) #8
  br label %244

239:                                              ; preds = %239, %233
  %240 = phi ptr [ %35, %233 ], [ %241, %239 ]
  %241 = getelementptr inbounds i8, ptr %240, i64 -40
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %241) #8
  %242 = icmp eq ptr %241, %5
  br i1 %242, label %243, label %239

243:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 40000, ptr nonnull %5) #8
  br label %249

244:                                              ; preds = %244, %238
  %245 = phi ptr [ %34, %238 ], [ %246, %244 ]
  %246 = getelementptr inbounds i8, ptr %245, i64 -40
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %246) #8
  %247 = icmp eq ptr %246, %4
  br i1 %247, label %248, label %244

248:                                              ; preds = %244
  call void @llvm.lifetime.end.p0(i64 40000, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %1) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %1) #8
  ret i32 0

249:                                              ; preds = %249, %243
  %250 = phi ptr [ %34, %243 ], [ %251, %249 ]
  %251 = getelementptr inbounds i8, ptr %250, i64 -40
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %251) #8
  %252 = icmp eq ptr %251, %4
  br i1 %252, label %253, label %249

253:                                              ; preds = %249
  call void @llvm.lifetime.end.p0(i64 40000, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #8
  br label %254

254:                                              ; preds = %253, %41
  %.pn118.pn = phi { ptr, i32 } [ %.pn118, %253 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %1) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn118.pn
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 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 #4

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

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

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

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

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

; 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 #0 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 ptr @_ZNSt13unordered_mapISt6vectorIbSaIbEEiSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairISt6vectorIbSaIbEEiEC2IKS2_iTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE18_ConstructiblePairIS7_S8_EEclsr6_PCCFPIS7_S8_EE26_ImplicitlyConvertiblePairIS7_S8_EEEbE4typeELb1EEERKS_IS7_S8_E(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #0 align 2

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #7

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !6, i64 40}
!18 = !{!"_ZTSSt4pairIKSt6vectorIbSaIbEEiE", !19, i64 0, !6, i64 40}
!19 = !{!"_ZTSSt6vectorIbSaIbEE", !20, i64 0}
!20 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !21, i64 0}
!21 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !23, i64 0, !23, i64 16, !25, i64 32}
!23 = !{!"_ZTSSt13_Bit_iterator", !24, i64 0}
!24 = !{!"_ZTSSt18_Bit_iterator_base", !25, i64 0, !6, i64 8}
!25 = !{!"any pointer", !7, i64 0}
!26 = distinct !{!26, !10}
!27 = !{!28, !6, i64 40}
!28 = !{!"_ZTSSt4pairISt6vectorIbSaIbEEiE", !19, i64 0, !6, i64 40}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,SROAPass,SimplifyCFGPass