; LLVM IR from ritikbanger/Hacktoberfest2022-DSA :: 29. Codeforces Problems (cinema)

; 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.11" = type { i64, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca %"class.std::set", align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca %"class.std::vector.6", align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %32 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca %"struct.std::pair.11", align 8
  %36 = alloca i64, align 8
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  %41 = alloca i64, align 8
  %42 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %43 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %44 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %45 = getelementptr i8, ptr %44, i64 -24
  %46 = load i64, ptr %45, align 8
  %47 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %46
  %48 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %47, ptr noundef null)
  %49 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %50 = getelementptr i8, ptr %49, i64 -24
  %51 = load i64, ptr %50, align 8
  %52 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %51
  %53 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %52, ptr noundef null)
  %54 = load ptr, ptr @stdin, align 8, !tbaa !8
  %55 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.4, ptr noundef %54)
  %56 = load ptr, ptr @stdout, align 8, !tbaa !8
  %57 = call ptr @freopen(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %56)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %60 = load i64, ptr %9, align 8, !tbaa !11
  %61 = call ptr @llvm.stacksave.p0()
  store ptr %61, ptr %18, align 8
  %62 = alloca i64, i64 %60, align 16
  store i64 %60, ptr %19, align 8
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %63

63:                                               ; preds = %71, %0
  %64 = load i64, ptr %3, align 8, !tbaa !11
  %65 = load i64, ptr %9, align 8, !tbaa !11
  %66 = icmp slt i64 %64, %65
  br i1 %66, label %67, label %74

67:                                               ; preds = %63
  %68 = load i64, ptr %3, align 8, !tbaa !11
  %69 = getelementptr inbounds i64, ptr %62, i64 %68
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %69)
  br label %71

71:                                               ; preds = %67
  %72 = load i64, ptr %3, align 8, !tbaa !11
  %73 = add nsw i64 %72, 1
  store i64 %73, ptr %3, align 8, !tbaa !11
  br label %63, !llvm.loop !13

74:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 48, ptr %20) #8
  call void @_ZNSt3setIxSt4lessIxESaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #8
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %75

75:                                               ; preds = %88, %74
  %76 = load i64, ptr %3, align 8, !tbaa !11
  %77 = load i64, ptr %9, align 8, !tbaa !11
  %78 = icmp slt i64 %76, %77
  br i1 %78, label %79, label %95

79:                                               ; preds = %75
  %80 = load i64, ptr %3, align 8, !tbaa !11
  %81 = getelementptr inbounds i64, ptr %62, i64 %80
  %82 = invoke { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 8 dereferenceable(8) %81)
          to label %83 unwind label %91

83:                                               ; preds = %79
  %84 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 0
  %85 = extractvalue { ptr, i8 } %82, 0
  store ptr %85, ptr %84, align 8
  %86 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 1
  %87 = extractvalue { ptr, i8 } %82, 1
  store i8 %87, ptr %86, align 8
  br label %88

88:                                               ; preds = %83
  %89 = load i64, ptr %3, align 8, !tbaa !11
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr %3, align 8, !tbaa !11
  br label %75, !llvm.loop !15

91:                                               ; preds = %95, %79
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %21, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %22, align 4
  br label %484

95:                                               ; preds = %75
  %96 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %97 unwind label %91

97:                                               ; preds = %95
  %98 = load i64, ptr %2, align 8, !tbaa !11
  %99 = alloca %"class.std::__cxx11::basic_string", i64 %98, align 16
  store i64 %98, ptr %24, align 8
  %100 = icmp eq i64 %98, 0
  br i1 %100, label %107, label %101

101:                                              ; preds = %97
  %102 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %99, i64 %98
  br label %103

103:                                              ; preds = %103, %101
  %104 = phi ptr [ %99, %101 ], [ %105, %103 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %104) #8
  %105 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %104, i64 1
  %106 = icmp eq ptr %105, %102
  br i1 %106, label %107, label %103

107:                                              ; preds = %103, %97
  %108 = load i64, ptr %2, align 8, !tbaa !11
  %109 = alloca i64, i64 %108, align 16
  store i64 %108, ptr %25, align 8
  %110 = load i64, ptr %2, align 8, !tbaa !11
  %111 = alloca %"class.std::vector", i64 %110, align 16
  store i64 %110, ptr %26, align 8
  %112 = icmp eq i64 %110, 0
  br i1 %112, label %119, label %113

113:                                              ; preds = %107
  %114 = getelementptr inbounds %"class.std::vector", ptr %111, i64 %110
  br label %115

115:                                              ; preds = %115, %113
  %116 = phi ptr [ %111, %113 ], [ %117, %115 ]
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %116) #8
  %117 = getelementptr inbounds %"class.std::vector", ptr %116, i64 1
  %118 = icmp eq ptr %117, %114
  br i1 %118, label %119, label %115

119:                                              ; preds = %115, %107
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %120

120:                                              ; preds = %153, %119
  %121 = load i64, ptr %3, align 8, !tbaa !11
  %122 = load i64, ptr %2, align 8, !tbaa !11
  %123 = icmp slt i64 %121, %122
  br i1 %123, label %124, label %156

124:                                              ; preds = %120
  %125 = load i64, ptr %3, align 8, !tbaa !11
  %126 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %99, i64 %125
  %127 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %126)
          to label %128 unwind label %148

128:                                              ; preds = %124
  %129 = load i64, ptr %3, align 8, !tbaa !11
  %130 = getelementptr inbounds i64, ptr %109, i64 %129
  %131 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %130)
          to label %132 unwind label %148

132:                                              ; preds = %128
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %133

133:                                              ; preds = %145, %132
  %134 = load i64, ptr %11, align 8, !tbaa !11
  %135 = load i64, ptr %3, align 8, !tbaa !11
  %136 = getelementptr inbounds i64, ptr %109, i64 %135
  %137 = load i64, ptr %136, align 8, !tbaa !11
  %138 = icmp slt i64 %134, %137
  br i1 %138, label %139, label %152

139:                                              ; preds = %133
  %140 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %141 unwind label %148

141:                                              ; preds = %139
  %142 = load i64, ptr %3, align 8, !tbaa !11
  %143 = getelementptr inbounds %"class.std::vector", ptr %111, i64 %142
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %143, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %144 unwind label %148

144:                                              ; preds = %141
  br label %145

145:                                              ; preds = %144
  %146 = load i64, ptr %11, align 8, !tbaa !11
  %147 = add nsw i64 %146, 1
  store i64 %147, ptr %11, align 8, !tbaa !11
  br label %133, !llvm.loop !16

148:                                              ; preds = %141, %139, %128, %124
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %21, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %22, align 4
  br label %469

152:                                              ; preds = %133
  br label %153

153:                                              ; preds = %152
  %154 = load i64, ptr %3, align 8, !tbaa !11
  %155 = add nsw i64 %154, 1
  store i64 %155, ptr %3, align 8, !tbaa !11
  br label %120, !llvm.loop !17

156:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  store i64 0, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  store i64 0, ptr %29, align 8, !tbaa !11
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %157

157:                                              ; preds = %246, %156
  %158 = load i64, ptr %3, align 8, !tbaa !11
  %159 = load i64, ptr %2, align 8, !tbaa !11
  %160 = icmp slt i64 %158, %159
  br i1 %160, label %161, label %258

161:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  store i64 0, ptr %30, align 8, !tbaa !11
  store i64 0, ptr %28, align 8, !tbaa !11
  store i64 0, ptr %29, align 8, !tbaa !11
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %162

162:                                              ; preds = %201, %161
  %163 = load i64, ptr %11, align 8, !tbaa !11
  %164 = load i64, ptr %3, align 8, !tbaa !11
  %165 = getelementptr inbounds i64, ptr %109, i64 %164
  %166 = load i64, ptr %165, align 8, !tbaa !11
  %167 = icmp slt i64 %163, %166
  br i1 %167, label %168, label %204

168:                                              ; preds = %162
  %169 = load i64, ptr %3, align 8, !tbaa !11
  %170 = getelementptr inbounds %"class.std::vector", ptr %111, i64 %169
  %171 = load i64, ptr %11, align 8, !tbaa !11
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %170, i64 noundef %171) #8
  %173 = load i64, ptr %172, align 8, !tbaa !11
  %174 = icmp eq i64 %173, 0
  br i1 %174, label %175, label %178

175:                                              ; preds = %168
  %176 = load i64, ptr %29, align 8, !tbaa !11
  %177 = add nsw i64 %176, 1
  store i64 %177, ptr %29, align 8, !tbaa !11
  br label %200

178:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %179 = load i64, ptr %3, align 8, !tbaa !11
  %180 = getelementptr inbounds %"class.std::vector", ptr %111, i64 %179
  %181 = load i64, ptr %11, align 8, !tbaa !11
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %181) #8
  %183 = invoke ptr @_ZNSt3setIxSt4lessIxESaIxEE4findERKx(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 8 dereferenceable(8) %182)
          to label %184 unwind label %192

184:                                              ; preds = %178
  %185 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %31, i32 0, i32 0
  store ptr %183, ptr %185, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %186 = call ptr @_ZNKSt3setIxSt4lessIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %20) #8
  %187 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %32, i32 0, i32 0
  store ptr %186, ptr %187, align 8
  %188 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIxES2_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br i1 %188, label %189, label %196

189:                                              ; preds = %184
  %190 = load i64, ptr %28, align 8, !tbaa !11
  %191 = add nsw i64 %190, 1
  store i64 %191, ptr %28, align 8, !tbaa !11
  br label %199

192:                                              ; preds = %178
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %21, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %257

196:                                              ; preds = %184
  %197 = load i64, ptr %30, align 8, !tbaa !11
  %198 = add nsw i64 %197, 1
  store i64 %198, ptr %30, align 8, !tbaa !11
  br label %199

199:                                              ; preds = %196, %189
  br label %200

200:                                              ; preds = %199, %175
  br label %201

201:                                              ; preds = %200
  %202 = load i64, ptr %11, align 8, !tbaa !11
  %203 = add nsw i64 %202, 1
  store i64 %203, ptr %11, align 8, !tbaa !11
  br label %162, !llvm.loop !18

204:                                              ; preds = %162
  %205 = load i64, ptr %9, align 8, !tbaa !11
  %206 = load i64, ptr %28, align 8, !tbaa !11
  %207 = sub nsw i64 %205, %206
  %208 = load i64, ptr %10, align 8, !tbaa !11
  %209 = load i64, ptr %28, align 8, !tbaa !11
  %210 = sub nsw i64 %208, %209
  %211 = load i64, ptr %30, align 8, !tbaa !11
  %212 = sub nsw i64 %210, %211
  %213 = load i64, ptr %29, align 8, !tbaa !11
  %214 = sub nsw i64 %212, %213
  %215 = icmp sgt i64 %207, %214
  br i1 %215, label %216, label %234

216:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %217 = load i64, ptr %9, align 8, !tbaa !11
  %218 = load i64, ptr %28, align 8, !tbaa !11
  %219 = sub nsw i64 %217, %218
  %220 = load i64, ptr %10, align 8, !tbaa !11
  %221 = sub nsw i64 %219, %220
  %222 = load i64, ptr %28, align 8, !tbaa !11
  %223 = add nsw i64 %221, %222
  %224 = load i64, ptr %30, align 8, !tbaa !11
  %225 = add nsw i64 %223, %224
  %226 = load i64, ptr %29, align 8, !tbaa !11
  %227 = add nsw i64 %225, %226
  store i64 %227, ptr %33, align 8, !tbaa !11
  %228 = load i64, ptr %33, align 8, !tbaa !11
  %229 = load i64, ptr %28, align 8, !tbaa !11
  %230 = add nsw i64 %229, %228
  store i64 %230, ptr %28, align 8, !tbaa !11
  %231 = load i64, ptr %33, align 8, !tbaa !11
  %232 = load i64, ptr %29, align 8, !tbaa !11
  %233 = sub nsw i64 %232, %231
  store i64 %233, ptr %29, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %234

234:                                              ; preds = %216, %204
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %235 = load i64, ptr %9, align 8, !tbaa !11
  %236 = load i64, ptr %28, align 8, !tbaa !11
  %237 = sub nsw i64 %235, %236
  store i64 %237, ptr %34, align 8, !tbaa !11
  %238 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %239 unwind label %249

239:                                              ; preds = %234
  %240 = load i64, ptr %238, align 8, !tbaa !11
  store i64 %240, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %241 = load i64, ptr %28, align 8, !tbaa !11
  %242 = load i64, ptr %15, align 8, !tbaa !11
  %243 = add nsw i64 %241, %242
  store i64 %243, ptr %36, align 8, !tbaa !11
  invoke void @_ZNSt4pairIxxEC2IRxxTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %244 unwind label %253

244:                                              ; preds = %239
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %245 unwind label %253

245:                                              ; preds = %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %246

246:                                              ; preds = %245
  %247 = load i64, ptr %3, align 8, !tbaa !11
  %248 = add nsw i64 %247, 1
  store i64 %248, ptr %3, align 8, !tbaa !11
  br label %157, !llvm.loop !19

249:                                              ; preds = %234
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %21, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %257

253:                                              ; preds = %244, %239
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %21, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  br label %257

257:                                              ; preds = %253, %249, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %468

258:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  store i64 0, ptr %37, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  store i64 0, ptr %38, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  store i64 0, ptr %39, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  store i64 0, ptr %40, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %259

259:                                              ; preds = %312, %258
  %260 = load i64, ptr %3, align 8, !tbaa !11
  %261 = load i64, ptr %2, align 8, !tbaa !11
  %262 = icmp slt i64 %260, %261
  br i1 %262, label %263, label %315

263:                                              ; preds = %259
  %264 = load i64, ptr %3, align 8, !tbaa !11
  %265 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %264) #8
  %266 = getelementptr inbounds %"struct.std::pair.11", ptr %265, i32 0, i32 0
  %267 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %266)
          to label %268 unwind label %292

268:                                              ; preds = %263
  %269 = load i64, ptr %267, align 8, !tbaa !11
  store i64 %269, ptr %39, align 8, !tbaa !11
  %270 = load i64, ptr %3, align 8, !tbaa !11
  %271 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %270) #8
  %272 = getelementptr inbounds %"struct.std::pair.11", ptr %271, i32 0, i32 0
  %273 = load i64, ptr %272, align 8, !tbaa !20
  %274 = load i64, ptr %3, align 8, !tbaa !11
  %275 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %274) #8
  %276 = getelementptr inbounds %"struct.std::pair.11", ptr %275, i32 0, i32 1
  %277 = load i64, ptr %276, align 8, !tbaa !22
  %278 = icmp eq i64 %273, %277
  br i1 %278, label %279, label %297

279:                                              ; preds = %268
  %280 = load i64, ptr %3, align 8, !tbaa !11
  %281 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %280) #8
  %282 = getelementptr inbounds %"struct.std::pair.11", ptr %281, i32 0, i32 0
  %283 = load i64, ptr %282, align 8, !tbaa !20
  %284 = load i64, ptr %37, align 8, !tbaa !11
  %285 = icmp sge i64 %283, %284
  br i1 %285, label %286, label %296

286:                                              ; preds = %279
  %287 = load i64, ptr %37, align 8, !tbaa !11
  store i64 %287, ptr %41, align 8, !tbaa !11
  %288 = load i64, ptr %3, align 8, !tbaa !11
  %289 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %288) #8
  %290 = getelementptr inbounds %"struct.std::pair.11", ptr %289, i32 0, i32 0
  %291 = load i64, ptr %290, align 8, !tbaa !20
  store i64 %291, ptr %37, align 8, !tbaa !11
  store i64 0, ptr %38, align 8, !tbaa !11
  br label %296

292:                                              ; preds = %263
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %21, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %22, align 4
  br label %467

296:                                              ; preds = %286, %279
  br label %311

297:                                              ; preds = %268
  %298 = load i64, ptr %3, align 8, !tbaa !11
  %299 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %298) #8
  %300 = getelementptr inbounds %"struct.std::pair.11", ptr %299, i32 0, i32 1
  %301 = load i64, ptr %300, align 8, !tbaa !22
  %302 = load i64, ptr %37, align 8, !tbaa !11
  %303 = icmp sgt i64 %301, %302
  br i1 %303, label %304, label %310

304:                                              ; preds = %297
  %305 = load i64, ptr %37, align 8, !tbaa !11
  store i64 %305, ptr %41, align 8, !tbaa !11
  %306 = load i64, ptr %3, align 8, !tbaa !11
  %307 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %306) #8
  %308 = getelementptr inbounds %"struct.std::pair.11", ptr %307, i32 0, i32 1
  %309 = load i64, ptr %308, align 8, !tbaa !22
  store i64 %309, ptr %37, align 8, !tbaa !11
  store i64 1, ptr %38, align 8, !tbaa !11
  br label %310

310:                                              ; preds = %304, %297
  br label %311

311:                                              ; preds = %310, %296
  br label %312

312:                                              ; preds = %311
  %313 = load i64, ptr %3, align 8, !tbaa !11
  %314 = add nsw i64 %313, 1
  store i64 %314, ptr %3, align 8, !tbaa !11
  br label %259, !llvm.loop !23

315:                                              ; preds = %259
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %316

316:                                              ; preds = %348, %315
  %317 = load i64, ptr %3, align 8, !tbaa !11
  %318 = load i64, ptr %2, align 8, !tbaa !11
  %319 = icmp slt i64 %317, %318
  br i1 %319, label %320, label %351

320:                                              ; preds = %316
  %321 = load i64, ptr %3, align 8, !tbaa !11
  %322 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %321) #8
  %323 = getelementptr inbounds %"struct.std::pair.11", ptr %322, i32 0, i32 0
  %324 = load i64, ptr %323, align 8, !tbaa !20
  %325 = load i64, ptr %3, align 8, !tbaa !11
  %326 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %325) #8
  %327 = getelementptr inbounds %"struct.std::pair.11", ptr %326, i32 0, i32 1
  %328 = load i64, ptr %327, align 8, !tbaa !22
  %329 = icmp ne i64 %324, %328
  br i1 %329, label %330, label %347

330:                                              ; preds = %320
  %331 = load i64, ptr %3, align 8, !tbaa !11
  %332 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %331) #8
  %333 = getelementptr inbounds %"struct.std::pair.11", ptr %332, i32 0, i32 0
  %334 = load i64, ptr %333, align 8, !tbaa !20
  %335 = load i64, ptr %39, align 8, !tbaa !11
  %336 = icmp eq i64 %334, %335
  br i1 %336, label %337, label %347

337:                                              ; preds = %330
  %338 = load i64, ptr %3, align 8, !tbaa !11
  %339 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %338) #8
  %340 = getelementptr inbounds %"struct.std::pair.11", ptr %339, i32 0, i32 1
  %341 = load i64, ptr %340, align 8, !tbaa !22
  %342 = load i64, ptr %37, align 8, !tbaa !11
  %343 = icmp eq i64 %341, %342
  br i1 %343, label %344, label %347

344:                                              ; preds = %337
  %345 = load i64, ptr %40, align 8, !tbaa !11
  %346 = add nsw i64 %345, 1
  store i64 %346, ptr %40, align 8, !tbaa !11
  br label %347

347:                                              ; preds = %344, %337, %330, %320
  br label %348

348:                                              ; preds = %347
  %349 = load i64, ptr %3, align 8, !tbaa !11
  %350 = add nsw i64 %349, 1
  store i64 %350, ptr %3, align 8, !tbaa !11
  br label %316, !llvm.loop !24

351:                                              ; preds = %316
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  store i64 1, ptr %42, align 8, !tbaa !11
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %352

352:                                              ; preds = %372, %351
  %353 = load i64, ptr %3, align 8, !tbaa !11
  %354 = load i64, ptr %2, align 8, !tbaa !11
  %355 = icmp slt i64 %353, %354
  br i1 %355, label %356, label %375

356:                                              ; preds = %352
  %357 = load i64, ptr %3, align 8, !tbaa !11
  %358 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %357) #8
  %359 = getelementptr inbounds %"struct.std::pair.11", ptr %358, i32 0, i32 1
  %360 = load i64, ptr %359, align 8, !tbaa !22
  %361 = load i64, ptr %39, align 8, !tbaa !11
  %362 = icmp sgt i64 %360, %361
  br i1 %362, label %363, label %371

363:                                              ; preds = %356
  %364 = load i64, ptr %3, align 8, !tbaa !11
  %365 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %364) #8
  %366 = getelementptr inbounds %"struct.std::pair.11", ptr %365, i32 0, i32 0
  %367 = load i64, ptr %366, align 8, !tbaa !20
  %368 = load i64, ptr %39, align 8, !tbaa !11
  %369 = icmp ne i64 %367, %368
  br i1 %369, label %370, label %371

370:                                              ; preds = %363
  store i64 0, ptr %42, align 8, !tbaa !11
  br label %371

371:                                              ; preds = %370, %363, %356
  br label %372

372:                                              ; preds = %371
  %373 = load i64, ptr %3, align 8, !tbaa !11
  %374 = add nsw i64 %373, 1
  store i64 %374, ptr %3, align 8, !tbaa !11
  br label %352, !llvm.loop !25

375:                                              ; preds = %352
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %376

376:                                              ; preds = %447, %375
  %377 = load i64, ptr %3, align 8, !tbaa !11
  %378 = load i64, ptr %2, align 8, !tbaa !11
  %379 = icmp slt i64 %377, %378
  br i1 %379, label %380, label %450

380:                                              ; preds = %376
  %381 = load i64, ptr %3, align 8, !tbaa !11
  %382 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %381) #8
  %383 = getelementptr inbounds %"struct.std::pair.11", ptr %382, i32 0, i32 1
  %384 = load i64, ptr %383, align 8, !tbaa !22
  %385 = load i64, ptr %39, align 8, !tbaa !11
  %386 = icmp slt i64 %384, %385
  br i1 %386, label %387, label %396

387:                                              ; preds = %380
  %388 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
          to label %389 unwind label %392

389:                                              ; preds = %387
  %390 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %388, i8 noundef signext 10)
          to label %391 unwind label %392

391:                                              ; preds = %389
  br label %446

392:                                              ; preds = %440, %438, %435, %433, %417, %415, %405, %403, %389, %387
  %393 = landingpad { ptr, i32 }
          cleanup
  %394 = extractvalue { ptr, i32 } %393, 0
  store ptr %394, ptr %21, align 8
  %395 = extractvalue { ptr, i32 } %393, 1
  store i32 %395, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %467

396:                                              ; preds = %380
  %397 = load i64, ptr %3, align 8, !tbaa !11
  %398 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %397) #8
  %399 = getelementptr inbounds %"struct.std::pair.11", ptr %398, i32 0, i32 0
  %400 = load i64, ptr %399, align 8, !tbaa !20
  %401 = load i64, ptr %37, align 8, !tbaa !11
  %402 = icmp sge i64 %400, %401
  br i1 %402, label %403, label %408

403:                                              ; preds = %396
  %404 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
          to label %405 unwind label %392

405:                                              ; preds = %403
  %406 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %404, i8 noundef signext 10)
          to label %407 unwind label %392

407:                                              ; preds = %405
  br label %445

408:                                              ; preds = %396
  %409 = load i64, ptr %3, align 8, !tbaa !11
  %410 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %409) #8
  %411 = getelementptr inbounds %"struct.std::pair.11", ptr %410, i32 0, i32 1
  %412 = load i64, ptr %411, align 8, !tbaa !22
  %413 = load i64, ptr %37, align 8, !tbaa !11
  %414 = icmp slt i64 %412, %413
  br i1 %414, label %415, label %420

415:                                              ; preds = %408
  %416 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
          to label %417 unwind label %392

417:                                              ; preds = %415
  %418 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %416, i8 noundef signext 10)
          to label %419 unwind label %392

419:                                              ; preds = %417
  br label %444

420:                                              ; preds = %408
  %421 = load i64, ptr %3, align 8, !tbaa !11
  %422 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %421) #8
  %423 = getelementptr inbounds %"struct.std::pair.11", ptr %422, i32 0, i32 0
  %424 = load i64, ptr %423, align 8, !tbaa !20
  %425 = load i64, ptr %39, align 8, !tbaa !11
  %426 = icmp eq i64 %424, %425
  br i1 %426, label %427, label %438

427:                                              ; preds = %420
  %428 = load i64, ptr %40, align 8, !tbaa !11
  %429 = icmp eq i64 %428, 1
  br i1 %429, label %430, label %438

430:                                              ; preds = %427
  %431 = load i64, ptr %42, align 8, !tbaa !11
  %432 = icmp ne i64 %431, 0
  br i1 %432, label %433, label %438

433:                                              ; preds = %430
  %434 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
          to label %435 unwind label %392

435:                                              ; preds = %433
  %436 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %434, i8 noundef signext 10)
          to label %437 unwind label %392

437:                                              ; preds = %435
  br label %443

438:                                              ; preds = %430, %427, %420
  %439 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 2)
          to label %440 unwind label %392

440:                                              ; preds = %438
  %441 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %439, i8 noundef signext 10)
          to label %442 unwind label %392

442:                                              ; preds = %440
  br label %443

443:                                              ; preds = %442, %437
  br label %444

444:                                              ; preds = %443, %419
  br label %445

445:                                              ; preds = %444, %407
  br label %446

446:                                              ; preds = %445, %391
  br label %447

447:                                              ; preds = %446
  %448 = load i64, ptr %3, align 8, !tbaa !11
  %449 = add nsw i64 %448, 1
  store i64 %449, ptr %3, align 8, !tbaa !11
  br label %376, !llvm.loop !26

450:                                              ; preds = %376
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #8
  %451 = getelementptr inbounds %"class.std::vector", ptr %111, i64 %110
  %452 = icmp eq ptr %111, %451
  br i1 %452, label %457, label %453

453:                                              ; preds = %453, %450
  %454 = phi ptr [ %451, %450 ], [ %455, %453 ]
  %455 = getelementptr inbounds %"class.std::vector", ptr %454, i64 -1
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %455) #8
  %456 = icmp eq ptr %455, %111
  br i1 %456, label %457, label %453

457:                                              ; preds = %453, %450
  %458 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %99, i64 %98
  %459 = icmp eq ptr %99, %458
  br i1 %459, label %464, label %460

460:                                              ; preds = %460, %457
  %461 = phi ptr [ %458, %457 ], [ %462, %460 ]
  %462 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %461, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %462) #8
  %463 = icmp eq ptr %462, %99
  br i1 %463, label %464, label %460

464:                                              ; preds = %460, %457
  call void @_ZNSt3setIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #8
  %465 = load ptr, ptr %18, align 8
  call void @llvm.stackrestore.p0(ptr %465)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  %466 = load i32, ptr %1, align 4
  ret i32 %466

467:                                              ; preds = %392, %292
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  br label %468

468:                                              ; preds = %467, %257
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #8
  br label %469

469:                                              ; preds = %468, %148
  %470 = getelementptr inbounds %"class.std::vector", ptr %111, i64 %110
  %471 = icmp eq ptr %111, %470
  br i1 %471, label %476, label %472

472:                                              ; preds = %472, %469
  %473 = phi ptr [ %470, %469 ], [ %474, %472 ]
  %474 = getelementptr inbounds %"class.std::vector", ptr %473, i64 -1
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %474) #8
  %475 = icmp eq ptr %474, %111
  br i1 %475, label %476, label %472

476:                                              ; preds = %472, %469
  %477 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %99, i64 %98
  %478 = icmp eq ptr %99, %477
  br i1 %478, label %483, label %479

479:                                              ; preds = %479, %476
  %480 = phi ptr [ %477, %476 ], [ %481, %479 ]
  %481 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %480, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %481) #8
  %482 = icmp eq ptr %481, %99
  br i1 %482, label %483, label %479

483:                                              ; preds = %479, %476
  br label %484

484:                                              ; preds = %483, %91
  call void @_ZNSt3setIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  br label %485

485:                                              ; preds = %484
  %486 = load ptr, ptr %21, align 8
  %487 = load i32, ptr %22, align 4
  %488 = insertvalue { ptr, i32 } poison, ptr %486, 0
  %489 = insertvalue { ptr, i32 } %488, i32 %487, 1
  resume { ptr, i32 } %489
}

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

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #2

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #7

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{!21, !12, i64 0}
!21 = !{!"_ZTSSt4pairIxxE", !12, i64 0, !12, i64 8}
!22 = !{!21, !12, i64 8}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}


; 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.11" = type { i64, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca [0 x i64], align 16
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"class.std::set", align 8
  %7 = alloca %"class.std::vector.6", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %12 = alloca i64, align 8
  %13 = alloca %"struct.std::pair.11", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %17 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %18 = getelementptr i8, ptr %17, i64 -24
  %19 = load i64, ptr %18, align 8
  %20 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %19
  %21 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %20, ptr noundef null)
  %22 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %23 = getelementptr i8, ptr %22, i64 -24
  %24 = load i64, ptr %23, align 8
  %25 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %24
  %26 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %25, ptr noundef null)
  %27 = load ptr, ptr @stdin, align 8, !tbaa !8
  %28 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.4, ptr noundef %27)
  %29 = load ptr, ptr @stdout, align 8, !tbaa !8
  %30 = tail call ptr @freopen(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef %29)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %33 = load i64, ptr %3, align 8, !tbaa !11
  %34 = call ptr @llvm.stacksave.p0()
  %35 = alloca i64, i64 %33, align 16
  %36 = load i64, ptr %3, align 8, !tbaa !11
  %37 = icmp sgt i64 %36, 0
  br i1 %37, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.074127 = phi i64 [ %40, %.lr.ph ], [ 0, %0 ]
  %38 = getelementptr inbounds i64, ptr %35, i64 %.074127
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %38)
  %40 = add nuw nsw i64 %.074127, 1
  %41 = load i64, ptr %3, align 8, !tbaa !11
  %42 = icmp slt i64 %40, %41
  br i1 %42, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #8
  call void @_ZNSt3setIxSt4lessIxESaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #8
  %43 = load i64, ptr %3, align 8, !tbaa !11
  %44 = icmp sgt i64 %43, 0
  br i1 %44, label %.lr.ph130, label %._crit_edge131

.lr.ph130:                                        ; preds = %._crit_edge, %47
  %.175128 = phi i64 [ %48, %47 ], [ 0, %._crit_edge ]
  %45 = getelementptr inbounds i64, ptr %35, i64 %.175128
  %46 = invoke { ptr, i8 } @_ZNSt3setIxSt4lessIxESaIxEE6insertERKx(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %47 unwind label %.loopexit121

47:                                               ; preds = %.lr.ph130
  %48 = add nuw nsw i64 %.175128, 1
  %49 = load i64, ptr %3, align 8, !tbaa !11
  %50 = icmp slt i64 %48, %49
  br i1 %50, label %.lr.ph130, label %._crit_edge131, !llvm.loop !15

.loopexit121:                                     ; preds = %.lr.ph130
  %lpad.loopexit123 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.split-lp122:                            ; preds = %._crit_edge131
  %lpad.loopexit.split-lp124 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

._crit_edge131:                                   ; preds = %47, %._crit_edge
  %51 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %52 unwind label %.loopexit.split-lp122

52:                                               ; preds = %._crit_edge131
  %53 = load i64, ptr %2, align 8, !tbaa !11
  %54 = alloca %"class.std::__cxx11::basic_string", i64 %53, align 16
  %55 = icmp eq i64 %53, 0
  br i1 %55, label %._crit_edge138, label %56

56:                                               ; preds = %52
  %57 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %54, i64 %53
  br label %58

58:                                               ; preds = %58, %56
  %59 = phi ptr [ %54, %56 ], [ %60, %58 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %59) #8
  %60 = getelementptr inbounds i8, ptr %59, i64 32
  %61 = icmp eq ptr %60, %57
  br i1 %61, label %62, label %58

62:                                               ; preds = %58
  %.pr = load i64, ptr %2, align 8, !tbaa !11
  %63 = alloca i64, i64 %.pr, align 16
  %64 = alloca %"class.std::vector", i64 %.pr, align 16
  %65 = icmp eq i64 %.pr, 0
  br i1 %65, label %._crit_edge138, label %66

66:                                               ; preds = %62
  %67 = getelementptr inbounds %"class.std::vector", ptr %64, i64 %.pr
  br label %68

68:                                               ; preds = %68, %66
  %69 = phi ptr [ %64, %66 ], [ %70, %68 ]
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %69) #8
  %70 = getelementptr inbounds i8, ptr %69, i64 24
  %71 = icmp eq ptr %70, %67
  br i1 %71, label %.loopexit120, label %68

.loopexit120:                                     ; preds = %68
  %.pre = load i64, ptr %2, align 8, !tbaa !11
  %72 = icmp sgt i64 %.pre, 0
  br i1 %72, label %.lr.ph137, label %._crit_edge138

.lr.ph137:                                        ; preds = %.loopexit120, %._crit_edge134
  %.2135 = phi i64 [ %88, %._crit_edge134 ], [ 0, %.loopexit120 ]
  %73 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %54, i64 %.2135
  %74 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %73)
          to label %75 unwind label %.loopexit.split-lp

75:                                               ; preds = %.lr.ph137
  %76 = getelementptr inbounds i64, ptr %63, i64 %.2135
  %77 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %76)
          to label %.preheader118 unwind label %.loopexit.split-lp

.preheader118:                                    ; preds = %75
  %78 = load i64, ptr %76, align 8, !tbaa !11
  %79 = icmp sgt i64 %78, 0
  br i1 %79, label %.lr.ph133, label %._crit_edge134

.lr.ph133:                                        ; preds = %.preheader118
  %80 = getelementptr inbounds %"class.std::vector", ptr %64, i64 %.2135
  br label %81

81:                                               ; preds = %.lr.ph133, %84
  %.078132 = phi i64 [ 0, %.lr.ph133 ], [ %85, %84 ]
  %82 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %83 unwind label %.loopexit119

83:                                               ; preds = %81
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %80, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %84 unwind label %.loopexit119

84:                                               ; preds = %83
  %85 = add nuw nsw i64 %.078132, 1
  %86 = load i64, ptr %76, align 8, !tbaa !11
  %87 = icmp slt i64 %85, %86
  br i1 %87, label %81, label %._crit_edge134, !llvm.loop !16

.loopexit119:                                     ; preds = %81, %83
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.preheader109.preheader

.loopexit.split-lp:                               ; preds = %.lr.ph137, %75
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.preheader109.preheader

._crit_edge134:                                   ; preds = %84, %.preheader118
  %88 = add nuw nsw i64 %.2135, 1
  %89 = load i64, ptr %2, align 8, !tbaa !11
  %90 = icmp slt i64 %88, %89
  br i1 %90, label %.lr.ph137, label %._crit_edge138, !llvm.loop !17

._crit_edge138:                                   ; preds = %._crit_edge134, %52, %62, %.loopexit120
  %91 = phi i64 [ %.pr, %.loopexit120 ], [ 0, %62 ], [ 0, %52 ], [ %.pr, %._crit_edge134 ]
  %92 = phi ptr [ %63, %.loopexit120 ], [ %63, %62 ], [ %1, %52 ], [ %63, %._crit_edge134 ]
  %93 = phi ptr [ %64, %.loopexit120 ], [ %64, %62 ], [ %1, %52 ], [ %64, %._crit_edge134 ]
  %94 = phi i1 [ false, %.loopexit120 ], [ true, %62 ], [ true, %52 ], [ false, %._crit_edge134 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %95 = load i64, ptr %2, align 8, !tbaa !11
  %96 = icmp sgt i64 %95, 0
  br i1 %96, label %.lr.ph146, label %._crit_edge147.thread

._crit_edge147.thread:                            ; preds = %._crit_edge138
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  br label %._crit_edge163

.lr.ph146:                                        ; preds = %._crit_edge138, %145
  %.3144 = phi i64 [ %146, %145 ], [ 0, %._crit_edge138 ]
  store i64 0, ptr %8, align 8, !tbaa !11
  store i64 0, ptr %9, align 8, !tbaa !11
  %97 = getelementptr inbounds i64, ptr %92, i64 %.3144
  %98 = load i64, ptr %97, align 8, !tbaa !11
  %99 = icmp sgt i64 %98, 0
  br i1 %99, label %.lr.ph142, label %._crit_edge143

.lr.ph142:                                        ; preds = %.lr.ph146
  %100 = getelementptr inbounds %"class.std::vector", ptr %93, i64 %.3144
  br label %101

101:                                              ; preds = %.lr.ph142, %121
  %.076140 = phi i64 [ 0, %.lr.ph142 ], [ %.177, %121 ]
  %.179139 = phi i64 [ 0, %.lr.ph142 ], [ %122, %121 ]
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %.179139) #8
  %103 = load i64, ptr %102, align 8, !tbaa !11
  %104 = icmp eq i64 %103, 0
  br i1 %104, label %105, label %108

105:                                              ; preds = %101
  %106 = load i64, ptr %9, align 8, !tbaa !11
  %107 = add nsw i64 %106, 1
  store i64 %107, ptr %9, align 8, !tbaa !11
  br label %121

108:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %.179139) #8
  %110 = invoke ptr @_ZNSt3setIxSt4lessIxESaIxEE4findERKx(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(8) %109)
          to label %111 unwind label %117

111:                                              ; preds = %108
  store ptr %110, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %112 = call ptr @_ZNKSt3setIxSt4lessIxESaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #8
  store ptr %112, ptr %11, align 8
  %113 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIxES2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br i1 %113, label %114, label %119

114:                                              ; preds = %111
  %115 = load i64, ptr %8, align 8, !tbaa !11
  %116 = add nsw i64 %115, 1
  store i64 %116, ptr %8, align 8, !tbaa !11
  br label %121

117:                                              ; preds = %108
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %252

119:                                              ; preds = %111
  %120 = add nsw i64 %.076140, 1
  br label %121

121:                                              ; preds = %105, %119, %114
  %.177 = phi i64 [ %.076140, %105 ], [ %.076140, %114 ], [ %120, %119 ]
  %122 = add nuw nsw i64 %.179139, 1
  %123 = load i64, ptr %97, align 8, !tbaa !11
  %124 = icmp slt i64 %122, %123
  br i1 %124, label %101, label %._crit_edge143.loopexit, !llvm.loop !18

._crit_edge143.loopexit:                          ; preds = %121
  %.pre164 = load i64, ptr %8, align 8, !tbaa !11
  %.pre165 = load i64, ptr %9, align 8, !tbaa !11
  br label %._crit_edge143

._crit_edge143:                                   ; preds = %._crit_edge143.loopexit, %.lr.ph146
  %125 = phi i64 [ 0, %.lr.ph146 ], [ %.pre165, %._crit_edge143.loopexit ]
  %126 = phi i64 [ 0, %.lr.ph146 ], [ %.pre164, %._crit_edge143.loopexit ]
  %.076.lcssa = phi i64 [ 0, %.lr.ph146 ], [ %.177, %._crit_edge143.loopexit ]
  %127 = load i64, ptr %3, align 8, !tbaa !11
  %128 = sub nsw i64 %127, %126
  %129 = load i64, ptr %4, align 8, !tbaa !11
  %130 = add i64 %126, %.076.lcssa
  %131 = add i64 %130, %125
  %132 = sub i64 %129, %131
  %133 = icmp sgt i64 %128, %132
  br i1 %133, label %134, label %140

134:                                              ; preds = %._crit_edge143
  %135 = sub i64 %130, %129
  %136 = add i64 %135, %128
  %137 = add i64 %125, %126
  %138 = add i64 %137, %136
  store i64 %138, ptr %8, align 8, !tbaa !11
  %139 = sub i64 0, %136
  store i64 %139, ptr %9, align 8, !tbaa !11
  %.pre166 = sub nsw i64 %127, %138
  br label %140

140:                                              ; preds = %134, %._crit_edge143
  %.pre-phi = phi i64 [ %.pre166, %134 ], [ %128, %._crit_edge143 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  store i64 %.pre-phi, ptr %12, align 8, !tbaa !11
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %142 = load i64, ptr %141, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %143 = load i64, ptr %8, align 8, !tbaa !11
  %144 = add nsw i64 %143, %142
  store i64 %144, ptr %14, align 8, !tbaa !11
  call void @_ZNSt4pairIxxEC2IRxxTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %14)
  invoke void @_ZNSt6vectorISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %145 unwind label %149

145:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  %146 = add nuw nsw i64 %.3144, 1
  %147 = load i64, ptr %2, align 8, !tbaa !11
  %148 = icmp slt i64 %146, %147
  br i1 %148, label %.lr.ph146, label %._crit_edge147, !llvm.loop !19

149:                                              ; preds = %140
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  br label %252

._crit_edge147:                                   ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  store i64 0, ptr %15, align 8, !tbaa !11
  %151 = icmp sgt i64 %147, 0
  br i1 %151, label %.lr.ph151, label %._crit_edge163

.preheader117:                                    ; preds = %176
  %152 = icmp sgt i64 %178, 0
  br i1 %152, label %.lr.ph155, label %._crit_edge163

.lr.ph151:                                        ; preds = %._crit_edge147, %176
  %.072149 = phi i64 [ %.173, %176 ], [ 0, %._crit_edge147 ]
  %.4148 = phi i64 [ %177, %176 ], [ 0, %._crit_edge147 ]
  %153 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.4148) #8
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %153)
  %155 = load i64, ptr %154, align 8, !tbaa !11
  store i64 %155, ptr %15, align 8, !tbaa !11
  %156 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.4148) #8
  %157 = load i64, ptr %156, align 8, !tbaa !20
  %158 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.4148) #8
  %159 = getelementptr inbounds i8, ptr %158, i64 8
  %160 = load i64, ptr %159, align 8, !tbaa !22
  %161 = icmp eq i64 %157, %160
  %162 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.4148) #8
  br i1 %161, label %163, label %168

163:                                              ; preds = %.lr.ph151
  %164 = load i64, ptr %162, align 8, !tbaa !20
  %.not97 = icmp slt i64 %164, %.072149
  br i1 %.not97, label %176, label %165

165:                                              ; preds = %163
  %166 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.4148) #8
  %167 = load i64, ptr %166, align 8, !tbaa !20
  br label %176

168:                                              ; preds = %.lr.ph151
  %169 = getelementptr inbounds i8, ptr %162, i64 8
  %170 = load i64, ptr %169, align 8, !tbaa !22
  %171 = icmp sgt i64 %170, %.072149
  br i1 %171, label %172, label %176

172:                                              ; preds = %168
  %173 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.4148) #8
  %174 = getelementptr inbounds i8, ptr %173, i64 8
  %175 = load i64, ptr %174, align 8, !tbaa !22
  br label %176

176:                                              ; preds = %165, %163, %172, %168
  %.173 = phi i64 [ %167, %165 ], [ %.072149, %163 ], [ %175, %172 ], [ %.072149, %168 ]
  %177 = add nuw nsw i64 %.4148, 1
  %178 = load i64, ptr %2, align 8, !tbaa !11
  %179 = icmp slt i64 %177, %178
  br i1 %179, label %.lr.ph151, label %.preheader117, !llvm.loop !23

.preheader116:                                    ; preds = %198
  %180 = icmp sgt i64 %200, 0
  %181 = icmp eq i64 %.171, 1
  br i1 %180, label %.lr.ph159, label %._crit_edge163

.lr.ph155:                                        ; preds = %.preheader117, %198
  %.070154 = phi i64 [ %.171, %198 ], [ 0, %.preheader117 ]
  %.5153 = phi i64 [ %199, %198 ], [ 0, %.preheader117 ]
  %182 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.5153) #8
  %183 = load i64, ptr %182, align 8, !tbaa !20
  %184 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.5153) #8
  %185 = getelementptr inbounds i8, ptr %184, i64 8
  %186 = load i64, ptr %185, align 8, !tbaa !22
  %.not96 = icmp eq i64 %183, %186
  br i1 %.not96, label %198, label %187

187:                                              ; preds = %.lr.ph155
  %188 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.5153) #8
  %189 = load i64, ptr %188, align 8, !tbaa !20
  %190 = load i64, ptr %15, align 8, !tbaa !11
  %191 = icmp eq i64 %189, %190
  br i1 %191, label %192, label %198

192:                                              ; preds = %187
  %193 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.5153) #8
  %194 = getelementptr inbounds i8, ptr %193, i64 8
  %195 = load i64, ptr %194, align 8, !tbaa !22
  %196 = icmp eq i64 %195, %.173
  %197 = zext i1 %196 to i64
  %spec.select = add nsw i64 %.070154, %197
  br label %198

198:                                              ; preds = %192, %.lr.ph155, %187
  %.171 = phi i64 [ %.070154, %187 ], [ %.070154, %.lr.ph155 ], [ %spec.select, %192 ]
  %199 = add nuw nsw i64 %.5153, 1
  %200 = load i64, ptr %2, align 8, !tbaa !11
  %201 = icmp slt i64 %199, %200
  br i1 %201, label %.lr.ph155, label %.preheader116, !llvm.loop !24

.preheader115:                                    ; preds = %213
  %202 = icmp sgt i64 %215, 0
  %203 = icmp ne i64 %.1, 0
  br i1 %202, label %.lr.ph162, label %._crit_edge163

.lr.ph159:                                        ; preds = %.preheader116, %213
  %.0158 = phi i64 [ %.1, %213 ], [ 1, %.preheader116 ]
  %.6157 = phi i64 [ %214, %213 ], [ 0, %.preheader116 ]
  %204 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.6157) #8
  %205 = getelementptr inbounds i8, ptr %204, i64 8
  %206 = load i64, ptr %205, align 8, !tbaa !22
  %207 = load i64, ptr %15, align 8, !tbaa !11
  %208 = icmp sgt i64 %206, %207
  br i1 %208, label %209, label %213

209:                                              ; preds = %.lr.ph159
  %210 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.6157) #8
  %211 = load i64, ptr %210, align 8, !tbaa !20
  %212 = load i64, ptr %15, align 8, !tbaa !11
  %.not95 = icmp eq i64 %211, %212
  %spec.select104 = select i1 %.not95, i64 %.0158, i64 0
  br label %213

213:                                              ; preds = %209, %.lr.ph159
  %.1 = phi i64 [ %.0158, %.lr.ph159 ], [ %spec.select104, %209 ]
  %214 = add nuw nsw i64 %.6157, 1
  %215 = load i64, ptr %2, align 8, !tbaa !11
  %216 = icmp slt i64 %214, %215
  br i1 %216, label %.lr.ph159, label %.preheader115, !llvm.loop !25

.lr.ph162:                                        ; preds = %.preheader115, %240
  %.7161 = phi i64 [ %241, %240 ], [ 0, %.preheader115 ]
  %217 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.7161) #8
  %218 = getelementptr inbounds i8, ptr %217, i64 8
  %219 = load i64, ptr %218, align 8, !tbaa !22
  %220 = load i64, ptr %15, align 8, !tbaa !11
  %221 = icmp slt i64 %219, %220
  br i1 %221, label %.invoke185, label %224

222:                                              ; preds = %.invoke185, %.invoke
  %223 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %252

224:                                              ; preds = %.lr.ph162
  %225 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.7161) #8
  %226 = load i64, ptr %225, align 8, !tbaa !20
  %.not = icmp slt i64 %226, %.173
  br i1 %.not, label %227, label %.invoke185

227:                                              ; preds = %224
  %228 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.7161) #8
  %229 = getelementptr inbounds i8, ptr %228, i64 8
  %230 = load i64, ptr %229, align 8, !tbaa !22
  %231 = icmp slt i64 %230, %.173
  br i1 %231, label %.invoke185, label %232

232:                                              ; preds = %227
  %233 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.7161) #8
  %234 = load i64, ptr %233, align 8, !tbaa !20
  %235 = load i64, ptr %15, align 8, !tbaa !11
  %236 = icmp eq i64 %234, %235
  %or.cond = select i1 %236, i1 %181, i1 false
  %or.cond3 = select i1 %or.cond, i1 %203, i1 false
  %. = select i1 %or.cond3, i32 0, i32 2
  br label %.invoke185

.invoke185:                                       ; preds = %.lr.ph162, %232, %227, %224
  %237 = phi i32 [ 0, %224 ], [ 2, %227 ], [ %., %232 ], [ 1, %.lr.ph162 ]
  %238 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %237)
          to label %.invoke unwind label %222

.invoke:                                          ; preds = %.invoke185
  %239 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %238, i8 noundef signext 10)
          to label %240 unwind label %222

240:                                              ; preds = %.invoke
  %241 = add nuw nsw i64 %.7161, 1
  %242 = load i64, ptr %2, align 8, !tbaa !11
  %243 = icmp slt i64 %241, %242
  br i1 %243, label %.lr.ph162, label %._crit_edge163, !llvm.loop !26

._crit_edge163:                                   ; preds = %240, %._crit_edge147.thread, %._crit_edge147, %.preheader117, %.preheader116, %.preheader115
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  br i1 %94, label %.loopexit114, label %.preheader113.preheader

.preheader113.preheader:                          ; preds = %._crit_edge163
  %244 = getelementptr inbounds %"class.std::vector", ptr %93, i64 %91
  br label %.preheader113

.preheader113:                                    ; preds = %.preheader113.preheader, %.preheader113
  %245 = phi ptr [ %246, %.preheader113 ], [ %244, %.preheader113.preheader ]
  %246 = getelementptr inbounds i8, ptr %245, i64 -24
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %246) #8
  %247 = icmp eq ptr %246, %93
  br i1 %247, label %.loopexit114, label %.preheader113

.loopexit114:                                     ; preds = %.preheader113, %._crit_edge163
  br i1 %55, label %.loopexit112, label %.preheader111.preheader

.preheader111.preheader:                          ; preds = %.loopexit114
  %248 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %54, i64 %53
  br label %.preheader111

.preheader111:                                    ; preds = %.preheader111.preheader, %.preheader111
  %249 = phi ptr [ %250, %.preheader111 ], [ %248, %.preheader111.preheader ]
  %250 = getelementptr inbounds i8, ptr %249, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %250) #8
  %251 = icmp eq ptr %250, %54
  br i1 %251, label %.loopexit112, label %.preheader111

.loopexit112:                                     ; preds = %.preheader111, %.loopexit114
  call void @_ZNSt3setIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #8
  call void @llvm.stackrestore.p0(ptr %34)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  ret i32 0

252:                                              ; preds = %222, %149, %117
  %.pn.pn = phi { ptr, i32 } [ %223, %222 ], [ %118, %117 ], [ %150, %149 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @_ZNSt6vectorISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  br i1 %94, label %.loopexit110, label %.preheader109.preheader

.preheader109.preheader:                          ; preds = %.loopexit.split-lp, %.loopexit119, %252
  %.pn100180 = phi { ptr, i32 } [ %.pn.pn, %252 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit, %.loopexit119 ]
  %253 = phi ptr [ %93, %252 ], [ %64, %.loopexit.split-lp ], [ %64, %.loopexit119 ]
  %254 = phi i64 [ %91, %252 ], [ %.pr, %.loopexit.split-lp ], [ %.pr, %.loopexit119 ]
  %255 = getelementptr inbounds %"class.std::vector", ptr %253, i64 %254
  br label %.preheader109

.preheader109:                                    ; preds = %.preheader109.preheader, %.preheader109
  %256 = phi ptr [ %257, %.preheader109 ], [ %255, %.preheader109.preheader ]
  %257 = getelementptr inbounds i8, ptr %256, i64 -24
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %257) #8
  %258 = icmp eq ptr %257, %253
  br i1 %258, label %.loopexit110, label %.preheader109

.loopexit110:                                     ; preds = %.preheader109, %252
  %.pn100181 = phi { ptr, i32 } [ %.pn.pn, %252 ], [ %.pn100180, %.preheader109 ]
  br i1 %55, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.loopexit110
  %259 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %54, i64 %53
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %260 = phi ptr [ %261, %.preheader ], [ %259, %.preheader.preheader ]
  %261 = getelementptr inbounds i8, ptr %260, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %261) #8
  %262 = icmp eq ptr %261, %54
  br i1 %262, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.loopexit121, %.loopexit.split-lp122, %.loopexit110
  %.pn102 = phi { ptr, i32 } [ %.pn100181, %.loopexit110 ], [ %lpad.loopexit123, %.loopexit121 ], [ %lpad.loopexit.split-lp124, %.loopexit.split-lp122 ], [ %.pn100181, %.preheader ]
  call void @_ZNSt3setIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn102
}

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

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #7

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{!21, !12, i64 0}
!21 = !{!"_ZTSSt4pairIxxE", !12, i64 0, !12, i64 8}
!22 = !{!21, !12, i64 8}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}


; Effective O3 passes: BDCEPass,ConstraintEliminationPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass