; LLVM IR from eyangch/competitive-programming :: Codeforces/1328 (e)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon = type { i64, 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 [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11assign_timeiRA200000_St6vectorIiSaIiEERA200000_iS5_iRi(i32 noundef, ptr noundef nonnull align 8 dereferenceable(4800000), ptr noundef nonnull align 4 dereferenceable(800000), ptr noundef nonnull align 4 dereferenceable(800000), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

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

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

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

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

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

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

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

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

61:                                               ; preds = %86, %60
  %62 = load i32, ptr %5, align 4, !tbaa !8
  %63 = load i32, ptr %2, align 4, !tbaa !8
  %64 = sub nsw i32 %63, 1
  %65 = icmp slt i32 %62, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %102

67:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %68 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %69 unwind label %89

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %71 unwind label %89

71:                                               ; preds = %69
  %72 = load i32, ptr %6, align 4, !tbaa !8
  %73 = sub nsw i32 %72, 1
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [200000 x %"class.std::vector"], ptr %4, i64 0, i64 %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %76 = load i32, ptr %7, align 4, !tbaa !8
  %77 = sub nsw i32 %76, 1
  store i32 %77, ptr %10, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %75, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %78 unwind label %93

78:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  %79 = load i32, ptr %7, align 4, !tbaa !8
  %80 = sub nsw i32 %79, 1
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [200000 x %"class.std::vector"], ptr %4, i64 0, i64 %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %83 = load i32, ptr %6, align 4, !tbaa !8
  %84 = sub nsw i32 %83, 1
  store i32 %84, ptr %11, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %82, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %85 unwind label %97

85:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %5, align 4, !tbaa !8
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %5, align 4, !tbaa !8
  br label %61, !llvm.loop !11

89:                                               ; preds = %69, %67
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %8, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %9, align 4
  br label %101

93:                                               ; preds = %71
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %8, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %101

97:                                               ; preds = %78
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %8, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %101

101:                                              ; preds = %97, %93, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %417

102:                                              ; preds = %66
  %103 = load i32, ptr %2, align 4, !tbaa !8
  %104 = zext i32 %103 to i64
  %105 = call ptr @llvm.stacksave.p0()
  store ptr %105, ptr %12, align 8
  %106 = alloca i32, i64 %104, align 16
  store i64 %104, ptr %13, align 8
  %107 = load i32, ptr %2, align 4, !tbaa !8
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds i32, ptr %106, i64 %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 -1, ptr %14, align 4, !tbaa !8
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %106, ptr noundef %109, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %110 unwind label %134

110:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr %15) #8
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
          to label %111 unwind label %138

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !8
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %112 unwind label %142

112:                                              ; preds = %111
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %15, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %113 unwind label %142

113:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %114

114:                                              ; preds = %191, %189, %113
  %115 = invoke noundef zeroext i1 @_ZNKSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
          to label %116 unwind label %146

116:                                              ; preds = %114
  %117 = xor i1 %115, true
  br i1 %117, label %118, label %194

118:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %119 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
          to label %120 unwind label %150

120:                                              ; preds = %118
  %121 = getelementptr inbounds %"struct.std::pair", ptr %119, i32 0, i32 0
  %122 = load i32, ptr %121, align 4, !tbaa !13
  store i32 %122, ptr %19, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %123 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
          to label %124 unwind label %154

124:                                              ; preds = %120
  %125 = getelementptr inbounds %"struct.std::pair", ptr %123, i32 0, i32 1
  %126 = load i32, ptr %125, align 4, !tbaa !15
  store i32 %126, ptr %20, align 4, !tbaa !8
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
          to label %127 unwind label %154

127:                                              ; preds = %124
  %128 = load i32, ptr %19, align 4, !tbaa !8
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds i32, ptr %106, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !8
  %132 = icmp ne i32 %131, -1
  br i1 %132, label %133, label %158

133:                                              ; preds = %127
  store i32 5, ptr %21, align 4
  br label %189, !llvm.loop !16

134:                                              ; preds = %102
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %8, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %417

138:                                              ; preds = %110
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %8, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %9, align 4
  br label %410

142:                                              ; preds = %112, %111
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %8, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %409

146:                                              ; preds = %114
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %8, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %9, align 4
  br label %409

150:                                              ; preds = %118
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %8, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %9, align 4
  br label %193

154:                                              ; preds = %124, %120
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %8, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %9, align 4
  br label %192

158:                                              ; preds = %127
  %159 = load i32, ptr %20, align 4, !tbaa !8
  %160 = load i32, ptr %19, align 4, !tbaa !8
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds i32, ptr %106, i64 %161
  store i32 %159, ptr %162, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %163 = load i32, ptr %19, align 4, !tbaa !8
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [200000 x %"class.std::vector"], ptr %4, i64 0, i64 %164
  store ptr %165, ptr %22, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %166 = load ptr, ptr %22, align 8, !tbaa !17
  %167 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #8
  %168 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %167, ptr %168, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %169 = load ptr, ptr %22, align 8, !tbaa !17
  %170 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %169) #8
  %171 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %170, ptr %171, align 8
  br label %172

172:                                              ; preds = %182, %158
  %173 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  br i1 %173, label %175, label %174

174:                                              ; preds = %172
  store i32 7, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %188

175:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %177 = load i32, ptr %176, align 4, !tbaa !8
  store i32 %177, ptr %25, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %178 = load i32, ptr %20, align 4, !tbaa !8
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %27, align 4, !tbaa !8
  invoke void @_ZNSt4pairIiiEC2IRiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %180 unwind label %184

180:                                              ; preds = %175
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %15, ptr noundef nonnull align 4 dereferenceable(8) %26)
          to label %181 unwind label %184

181:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %182

182:                                              ; preds = %181
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  br label %172

184:                                              ; preds = %180, %175
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %8, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %192

188:                                              ; preds = %174
  store i32 0, ptr %21, align 4
  br label %189

189:                                              ; preds = %188, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  %190 = load i32, ptr %21, align 4
  switch i32 %190, label %430 [
    i32 0, label %191
    i32 5, label %114
  ]

191:                                              ; preds = %189
  br label %114, !llvm.loop !16

192:                                              ; preds = %184, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %193

193:                                              ; preds = %192, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %409

194:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 800000, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 800000, ptr %29) #8
  %195 = getelementptr inbounds [200000 x i32], ptr %28, i64 0, i64 0
  %196 = getelementptr inbounds [200000 x i32], ptr %28, i64 0, i64 0
  %197 = load i32, ptr %2, align 4, !tbaa !8
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds i32, ptr %196, i64 %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 -1, ptr %30, align 4, !tbaa !8
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %195, ptr noundef %199, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %200 unwind label %208

200:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 0, ptr %31, align 4, !tbaa !8
  %201 = load i32, ptr %2, align 4, !tbaa !8
  invoke void @_Z11assign_timeiRA200000_St6vectorIiSaIiEERA200000_iS5_iRi(i32 noundef %201, ptr noundef nonnull align 8 dereferenceable(4800000) %4, ptr noundef nonnull align 4 dereferenceable(800000) %28, ptr noundef nonnull align 4 dereferenceable(800000) %29, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %202 unwind label %212

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

203:                                              ; preds = %399, %202
  %204 = load i32, ptr %32, align 4, !tbaa !8
  %205 = load i32, ptr %3, align 4, !tbaa !8
  %206 = icmp slt i32 %204, %205
  br i1 %206, label %216, label %207

207:                                              ; preds = %203
  store i32 9, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %403

208:                                              ; preds = %194
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %8, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %408

212:                                              ; preds = %200
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %8, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %9, align 4
  br label %407

216:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %217 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %218 unwind label %228

218:                                              ; preds = %216
  %219 = load i32, ptr %33, align 4, !tbaa !8
  %220 = zext i32 %219 to i64
  %221 = call ptr @llvm.stacksave.p0()
  store ptr %221, ptr %34, align 8
  %222 = alloca i32, i64 %220, align 16
  store i64 %220, ptr %35, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  store i32 0, ptr %36, align 4, !tbaa !8
  br label %223

223:                                              ; preds = %290, %218
  %224 = load i32, ptr %36, align 4, !tbaa !8
  %225 = load i32, ptr %33, align 4, !tbaa !8
  %226 = icmp slt i32 %224, %225
  br i1 %226, label %232, label %227

227:                                              ; preds = %223
  store i32 12, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %293

228:                                              ; preds = %293, %216
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %8, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %9, align 4
  br label %402

232:                                              ; preds = %223
  %233 = load i32, ptr %36, align 4, !tbaa !8
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds i32, ptr %222, i64 %234
  %236 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %235)
          to label %237 unwind label %258

237:                                              ; preds = %232
  %238 = load i32, ptr %36, align 4, !tbaa !8
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds i32, ptr %222, i64 %239
  %241 = load i32, ptr %240, align 4, !tbaa !8
  %242 = add nsw i32 %241, -1
  store i32 %242, ptr %240, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %243 = load i32, ptr %36, align 4, !tbaa !8
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds i32, ptr %222, i64 %244
  %246 = load i32, ptr %245, align 4, !tbaa !8
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [200000 x %"class.std::vector"], ptr %4, i64 0, i64 %247
  store ptr %248, ptr %37, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %249 = load ptr, ptr %37, align 8, !tbaa !17
  %250 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %249) #8
  %251 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %38, i32 0, i32 0
  store ptr %250, ptr %251, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %252 = load ptr, ptr %37, align 8, !tbaa !17
  %253 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %252) #8
  %254 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  store ptr %253, ptr %254, align 8
  br label %255

255:                                              ; preds = %286, %237
  %256 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39) #8
  br i1 %256, label %262, label %257

257:                                              ; preds = %255
  store i32 15, ptr %21, align 4
  br label %288

258:                                              ; preds = %232
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %8, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %402

262:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  %263 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  %264 = load i32, ptr %263, align 4, !tbaa !8
  store i32 %264, ptr %40, align 4, !tbaa !8
  %265 = load i32, ptr %40, align 4, !tbaa !8
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds i32, ptr %106, i64 %266
  %268 = load i32, ptr %267, align 4, !tbaa !8
  %269 = load i32, ptr %36, align 4, !tbaa !8
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds i32, ptr %222, i64 %270
  %272 = load i32, ptr %271, align 4, !tbaa !8
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds i32, ptr %106, i64 %273
  %275 = load i32, ptr %274, align 4, !tbaa !8
  %276 = icmp slt i32 %268, %275
  br i1 %276, label %277, label %282

277:                                              ; preds = %262
  %278 = load i32, ptr %40, align 4, !tbaa !8
  %279 = load i32, ptr %36, align 4, !tbaa !8
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds i32, ptr %222, i64 %280
  store i32 %278, ptr %281, align 4, !tbaa !8
  store i32 15, ptr %21, align 4
  br label %283

282:                                              ; preds = %262
  store i32 0, ptr %21, align 4
  br label %283

283:                                              ; preds = %282, %277
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  %284 = load i32, ptr %21, align 4
  switch i32 %284, label %288 [
    i32 0, label %285
  ]

285:                                              ; preds = %283
  br label %286

286:                                              ; preds = %285
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #8
  br label %255

288:                                              ; preds = %283, %257
  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 %289

289:                                              ; preds = %288
  br label %290

290:                                              ; preds = %289
  %291 = load i32, ptr %36, align 4, !tbaa !8
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %36, align 4, !tbaa !8
  br label %223, !llvm.loop !19

293:                                              ; preds = %227
  %294 = load i32, ptr %33, align 4, !tbaa !8
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds i32, ptr %222, i64 %295
  %297 = getelementptr inbounds %class.anon, ptr %41, i32 0, i32 0
  store i64 %104, ptr %297, align 8, !tbaa !20
  %298 = getelementptr inbounds %class.anon, ptr %41, i32 0, i32 1
  store ptr %106, ptr %298, align 8, !tbaa !17
  %299 = getelementptr inbounds { i64, ptr }, ptr %41, i32 0, i32 0
  %300 = load i64, ptr %299, align 8
  %301 = getelementptr inbounds { i64, ptr }, ptr %41, i32 0, i32 1
  %302 = load ptr, ptr %301, align 8
  invoke void @"_ZSt4sortIPiZ4mainE3$_0EvT_S2_T0_"(ptr noundef %222, ptr noundef %296, i64 %300, ptr %302)
          to label %303 unwind label %228

303:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  %304 = getelementptr inbounds i32, ptr %222, i64 0
  %305 = load i32, ptr %304, align 16, !tbaa !8
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [200000 x i32], ptr %28, i64 0, i64 %306
  %308 = load i32, ptr %307, align 4, !tbaa !8
  store i32 %308, ptr %42, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  %309 = getelementptr inbounds i32, ptr %222, i64 0
  %310 = load i32, ptr %309, align 16, !tbaa !8
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [200000 x i32], ptr %29, i64 0, i64 %311
  %313 = load i32, ptr %312, align 4, !tbaa !8
  store i32 %313, ptr %43, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #8
  store i8 1, ptr %44, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  store i32 1, ptr %45, align 4, !tbaa !8
  br label %314

314:                                              ; preds = %376, %303
  %315 = load i32, ptr %45, align 4, !tbaa !8
  %316 = load i32, ptr %33, align 4, !tbaa !8
  %317 = icmp slt i32 %315, %316
  br i1 %317, label %319, label %318

318:                                              ; preds = %314
  store i32 17, ptr %21, align 4
  br label %379

319:                                              ; preds = %314
  %320 = load i32, ptr %45, align 4, !tbaa !8
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds i32, ptr %222, i64 %321
  %323 = load i32, ptr %322, align 4, !tbaa !8
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [200000 x i32], ptr %28, i64 0, i64 %324
  %326 = load i32, ptr %325, align 4, !tbaa !8
  %327 = load i32, ptr %42, align 4, !tbaa !8
  %328 = icmp slt i32 %326, %327
  br i1 %328, label %359, label %329

329:                                              ; preds = %319
  %330 = load i32, ptr %45, align 4, !tbaa !8
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds i32, ptr %222, i64 %331
  %333 = load i32, ptr %332, align 4, !tbaa !8
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [200000 x i32], ptr %28, i64 0, i64 %334
  %336 = load i32, ptr %335, align 4, !tbaa !8
  %337 = load i32, ptr %43, align 4, !tbaa !8
  %338 = icmp sgt i32 %336, %337
  br i1 %338, label %359, label %339

339:                                              ; preds = %329
  %340 = load i32, ptr %45, align 4, !tbaa !8
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds i32, ptr %222, i64 %341
  %343 = load i32, ptr %342, align 4, !tbaa !8
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [200000 x i32], ptr %29, i64 0, i64 %344
  %346 = load i32, ptr %345, align 4, !tbaa !8
  %347 = load i32, ptr %42, align 4, !tbaa !8
  %348 = icmp slt i32 %346, %347
  br i1 %348, label %359, label %349

349:                                              ; preds = %339
  %350 = load i32, ptr %45, align 4, !tbaa !8
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds i32, ptr %222, i64 %351
  %353 = load i32, ptr %352, align 4, !tbaa !8
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [200000 x i32], ptr %29, i64 0, i64 %354
  %356 = load i32, ptr %355, align 4, !tbaa !8
  %357 = load i32, ptr %43, align 4, !tbaa !8
  %358 = icmp sgt i32 %356, %357
  br i1 %358, label %359, label %360

359:                                              ; preds = %349, %339, %329, %319
  store i8 0, ptr %44, align 1, !tbaa !23
  store i32 17, ptr %21, align 4
  br label %379

360:                                              ; preds = %349
  %361 = load i32, ptr %45, align 4, !tbaa !8
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds i32, ptr %222, i64 %362
  %364 = load i32, ptr %363, align 4, !tbaa !8
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds [200000 x i32], ptr %28, i64 0, i64 %365
  %367 = load i32, ptr %366, align 4, !tbaa !8
  store i32 %367, ptr %42, align 4, !tbaa !8
  %368 = load i32, ptr %45, align 4, !tbaa !8
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds i32, ptr %222, i64 %369
  %371 = load i32, ptr %370, align 4, !tbaa !8
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds [200000 x i32], ptr %29, i64 0, i64 %372
  %374 = load i32, ptr %373, align 4, !tbaa !8
  store i32 %374, ptr %43, align 4, !tbaa !8
  br label %375

375:                                              ; preds = %360
  br label %376

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

379:                                              ; preds = %359, %318
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  br label %380

380:                                              ; preds = %379
  %381 = load i8, ptr %44, align 1, !tbaa !23, !range !26, !noundef !27
  %382 = trunc i8 %381 to i1
  br i1 %382, label %383, label %392

383:                                              ; preds = %380
  %384 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %385 unwind label %388

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

387:                                              ; preds = %385
  br label %397

388:                                              ; preds = %394, %392, %385, %383
  %389 = landingpad { ptr, i32 }
          cleanup
  %390 = extractvalue { ptr, i32 } %389, 0
  store ptr %390, ptr %8, align 8
  %391 = extractvalue { ptr, i32 } %389, 1
  store i32 %391, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %402

392:                                              ; preds = %380
  %393 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %394 unwind label %388

394:                                              ; preds = %392
  %395 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %393, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %396 unwind label %388

396:                                              ; preds = %394
  br label %397

397:                                              ; preds = %396, %387
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  %398 = load ptr, ptr %34, align 8
  call void @llvm.stackrestore.p0(ptr %398)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %399

399:                                              ; preds = %397
  %400 = load i32, ptr %32, align 4, !tbaa !8
  %401 = add nsw i32 %400, 1
  store i32 %401, ptr %32, align 4, !tbaa !8
  br label %203, !llvm.loop !28

402:                                              ; preds = %388, %258, %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %407

403:                                              ; preds = %207
  store i32 0, ptr %1, align 4
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 800000, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 800000, ptr %28) #8
  call void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %15) #8
  %404 = load ptr, ptr %12, align 8
  call void @llvm.stackrestore.p0(ptr %404)
  %405 = getelementptr inbounds [200000 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %406 = getelementptr inbounds %"class.std::vector", ptr %405, i64 200000
  br label %411

407:                                              ; preds = %402, %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %408

408:                                              ; preds = %407, %208
  call void @llvm.lifetime.end.p0(i64 800000, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 800000, ptr %28) #8
  br label %409

409:                                              ; preds = %408, %193, %146, %142
  call void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #8
  br label %410

410:                                              ; preds = %409, %138
  call void @llvm.lifetime.end.p0(i64 80, ptr %15) #8
  br label %417

411:                                              ; preds = %411, %403
  %412 = phi ptr [ %406, %403 ], [ %413, %411 ]
  %413 = getelementptr inbounds %"class.std::vector", ptr %412, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %413) #8
  %414 = icmp eq ptr %413, %405
  br i1 %414, label %415, label %411

415:                                              ; preds = %411
  call void @llvm.lifetime.end.p0(i64 4800000, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %416 = load i32, ptr %1, align 4
  ret i32 %416

417:                                              ; preds = %410, %134, %101
  %418 = getelementptr inbounds [200000 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %419 = getelementptr inbounds %"class.std::vector", ptr %418, i64 200000
  br label %420

420:                                              ; preds = %420, %417
  %421 = phi ptr [ %419, %417 ], [ %422, %420 ]
  %422 = getelementptr inbounds %"class.std::vector", ptr %421, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %422) #8
  %423 = icmp eq ptr %422, %418
  br i1 %423, label %424, label %420

424:                                              ; preds = %420
  call void @llvm.lifetime.end.p0(i64 4800000, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %425

425:                                              ; preds = %424
  %426 = load ptr, ptr %8, align 8
  %427 = load i32, ptr %9, align 4
  %428 = insertvalue { ptr, i32 } poison, ptr %426, 0
  %429 = insertvalue { ptr, i32 } %428, i32 %427, 1
  resume { ptr, i32 } %429

430:                                              ; preds = %189
  unreachable
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #7

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIPiZ4mainE3$_0EvT_S2_T0_"(ptr noundef, ptr noundef, i64, ptr) #7

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

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

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

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

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

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

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


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { 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 [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11assign_timeiRA200000_St6vectorIiSaIiEERA200000_iS5_iRi(i32 noundef, ptr noundef nonnull align 8 dereferenceable(4800000), ptr noundef nonnull align 4 dereferenceable(800000), ptr noundef nonnull align 4 dereferenceable(800000), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

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

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

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [200000 x %"class.std::vector"], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::queue", align 8
  %10 = alloca %"struct.std::pair", align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::pair", align 4
  %17 = alloca i32, align 4
  %18 = alloca [200000 x i32], align 16
  %19 = alloca [200000 x i32], align 16
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %26 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %27 = getelementptr i8, ptr %26, i64 -24
  %28 = load i64, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %28
  %30 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %29, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 4800000, ptr nonnull %3) #8
  br label %33

33:                                               ; preds = %33, %0
  %.idx = phi i64 [ 0, %0 ], [ %.add, %33 ]
  %.ptr = getelementptr inbounds i8, ptr %3, i64 %.idx
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr) #8
  %.add = add nuw nsw i64 %.idx, 24
  %34 = icmp eq i64 %.add, 4800000
  br i1 %34, label %.preheader76, label %33

.preheader76:                                     ; preds = %33
  %35 = getelementptr inbounds i8, ptr %3, i64 4800000
  %36 = load i32, ptr %1, align 4, !tbaa !8
  %37 = icmp sgt i32 %36, 1
  br i1 %37, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %61, %.preheader76
  %.lcssa79 = phi i32 [ %36, %.preheader76 ], [ %63, %61 ]
  %38 = zext i32 %.lcssa79 to i64
  %39 = call ptr @llvm.stacksave.p0()
  %40 = alloca i32, i64 %38, align 16
  %41 = load i32, ptr %1, align 4, !tbaa !8
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds i32, ptr %40, i64 %42
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  store i32 -1, ptr %8, align 4, !tbaa !8
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %40, ptr noundef nonnull %43, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %73 unwind label %85

.lr.ph:                                           ; preds = %.preheader76, %61
  %.04383 = phi i32 [ %62, %61 ], [ 0, %.preheader76 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %44 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %45 unwind label %66

45:                                               ; preds = %.lr.ph
  %46 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %47 unwind label %66

47:                                               ; preds = %45
  %48 = load i32, ptr %4, align 4, !tbaa !8
  %49 = add nsw i32 %48, -1
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [200000 x %"class.std::vector"], ptr %3, i64 0, i64 %50
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  %52 = load i32, ptr %5, align 4, !tbaa !8
  %53 = add nsw i32 %52, -1
  store i32 %53, ptr %6, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %54 unwind label %68

54:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  %55 = load i32, ptr %5, align 4, !tbaa !8
  %56 = add nsw i32 %55, -1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [200000 x %"class.std::vector"], ptr %3, i64 0, i64 %57
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %59 = load i32, ptr %4, align 4, !tbaa !8
  %60 = add nsw i32 %59, -1
  store i32 %60, ptr %7, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %61 unwind label %70

61:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  %62 = add nuw nsw i32 %.04383, 1
  %63 = load i32, ptr %1, align 4, !tbaa !8
  %64 = add nsw i32 %63, -1
  %65 = icmp slt i32 %62, %64
  br i1 %65, label %.lr.ph, label %._crit_edge, !llvm.loop !11

66:                                               ; preds = %45, %.lr.ph
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %72

68:                                               ; preds = %47
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  br label %72

70:                                               ; preds = %54
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  br label %72

72:                                               ; preds = %70, %68, %66
  %.pn70 = phi { ptr, i32 } [ %71, %70 ], [ %69, %68 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  br label %196

73:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #8
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
          to label %74 unwind label %87

74:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  store i32 0, ptr %11, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  store i32 0, ptr %12, align 4, !tbaa !8
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 4 dereferenceable(8) %10)
          to label %75 unwind label %89

75:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  %76 = call noundef zeroext i1 @_ZNKSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
  br i1 %76, label %._crit_edge89, label %.lr.ph88

.lr.ph88:                                         ; preds = %75, %105
  %77 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
  %78 = load i32, ptr %77, align 4, !tbaa !13
  %79 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
  %80 = getelementptr inbounds i8, ptr %79, i64 4
  %81 = load i32, ptr %80, align 4, !tbaa !15
  call void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
  %82 = sext i32 %78 to i64
  %83 = getelementptr inbounds i32, ptr %40, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !8
  %.not66 = icmp eq i32 %84, -1
  br i1 %.not66, label %91, label %105, !llvm.loop !16

85:                                               ; preds = %._crit_edge
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  br label %196

87:                                               ; preds = %73
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %190

89:                                               ; preds = %74
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %189

91:                                               ; preds = %.lr.ph88
  store i32 %81, ptr %83, align 4, !tbaa !8
  %92 = getelementptr inbounds [200000 x %"class.std::vector"], ptr %3, i64 0, i64 %82
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %93 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #8
  store ptr %93, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %94 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #8
  store ptr %94, ptr %14, align 8
  %95 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %95, label %.lr.ph85, label %._crit_edge86

.lr.ph85:                                         ; preds = %91
  %96 = add nsw i32 %81, 1
  br label %97

._crit_edge86:                                    ; preds = %100, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %105

97:                                               ; preds = %.lr.ph85, %100
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #8
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %99 = load i32, ptr %98, align 4, !tbaa !8
  store i32 %99, ptr %15, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #8
  store i32 %96, ptr %17, align 4, !tbaa !8
  call void @_ZNSt4pairIiiEC2IRiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %17)
  invoke void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %100 unwind label %103

100:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %102 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %102, label %97, label %._crit_edge86

103:                                              ; preds = %97
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %189

105:                                              ; preds = %.lr.ph88, %._crit_edge86
  %106 = call noundef zeroext i1 @_ZNKSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
  br i1 %106, label %._crit_edge89, label %.lr.ph88

._crit_edge89:                                    ; preds = %105, %75
  call void @llvm.lifetime.start.p0(i64 800000, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 800000, ptr nonnull %19) #8
  %107 = load i32, ptr %1, align 4, !tbaa !8
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds i32, ptr %18, i64 %108
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #8
  store i32 -1, ptr %20, align 4, !tbaa !8
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %18, ptr noundef nonnull %109, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %110 unwind label %114

110:                                              ; preds = %._crit_edge89
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #8
  store i32 0, ptr %21, align 4, !tbaa !8
  %111 = load i32, ptr %1, align 4, !tbaa !8
  invoke void @_Z11assign_timeiRA200000_St6vectorIiSaIiEERA200000_iS5_iRi(i32 noundef %111, ptr noundef nonnull align 8 dereferenceable(4800000) %3, ptr noundef nonnull align 4 dereferenceable(800000) %18, ptr noundef nonnull align 4 dereferenceable(800000) %19, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %.preheader unwind label %116

.preheader:                                       ; preds = %110
  %112 = load i32, ptr %2, align 4, !tbaa !8
  %113 = icmp sgt i32 %112, 0
  br i1 %113, label %.lr.ph104, label %._crit_edge105

._crit_edge105:                                   ; preds = %182, %.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 800000, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 800000, ptr nonnull %18) #8
  call void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #8
  call void @llvm.stackrestore.p0(ptr %39)
  br label %191

114:                                              ; preds = %._crit_edge89
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #8
  br label %188

116:                                              ; preds = %110
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %187

.lr.ph104:                                        ; preds = %.preheader, %182
  %.054103 = phi i32 [ %183, %182 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #8
  %118 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %119 unwind label %127

119:                                              ; preds = %.lr.ph104
  %120 = load i32, ptr %22, align 4, !tbaa !8
  %121 = zext i32 %120 to i64
  %122 = call ptr @llvm.stacksave.p0()
  %123 = alloca i32, i64 %121, align 16
  %124 = load i32, ptr %22, align 4, !tbaa !8
  %125 = icmp sgt i32 %124, 0
  br i1 %125, label %.lr.ph94, label %.._crit_edge95_crit_edge

.._crit_edge95_crit_edge:                         ; preds = %119
  %.pre = sext i32 %124 to i64
  br label %._crit_edge95

._crit_edge95:                                    ; preds = %.loopexit, %.._crit_edge95_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge95_crit_edge ], [ %154, %.loopexit ]
  %126 = getelementptr inbounds i32, ptr %123, i64 %.pre-phi
  invoke void @"_ZSt4sortIPiZ4mainE3$_0EvT_S2_T0_"(ptr noundef nonnull %123, ptr noundef nonnull %126, i64 %38, ptr nonnull %40)
          to label %156 unwind label %127

127:                                              ; preds = %._crit_edge95, %.lr.ph104
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %186

.lr.ph94:                                         ; preds = %119, %.loopexit
  %indvars.iv = phi i64 [ %indvars.iv.next, %.loopexit ], [ 0, %119 ]
  %129 = getelementptr inbounds i32, ptr %123, i64 %indvars.iv
  %130 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %129)
          to label %131 unwind label %139

131:                                              ; preds = %.lr.ph94
  %132 = load i32, ptr %129, align 4, !tbaa !8
  %133 = add nsw i32 %132, -1
  store i32 %133, ptr %129, align 4, !tbaa !8
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [200000 x %"class.std::vector"], ptr %3, i64 0, i64 %134
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #8
  %136 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %135) #8
  store ptr %136, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #8
  %137 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %135) #8
  store ptr %137, ptr %24, align 8
  %138 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  br i1 %138, label %.lr.ph91, label %.loopexit

139:                                              ; preds = %.lr.ph94
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %186

.lr.ph91:                                         ; preds = %131, %.critedge
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %142 = load i32, ptr %141, align 4, !tbaa !8
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds i32, ptr %40, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !8
  %146 = load i32, ptr %129, align 4, !tbaa !8
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds i32, ptr %40, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !8
  %.not65 = icmp slt i32 %145, %149
  br i1 %.not65, label %150, label %.critedge

150:                                              ; preds = %.lr.ph91
  store i32 %142, ptr %129, align 4, !tbaa !8
  br label %.loopexit

.critedge:                                        ; preds = %.lr.ph91
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %152 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  br i1 %152, label %.lr.ph91, label %.loopexit

.loopexit:                                        ; preds = %.critedge, %131, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %153 = load i32, ptr %22, align 4, !tbaa !8
  %154 = sext i32 %153 to i64
  %155 = icmp slt i64 %indvars.iv.next, %154
  br i1 %155, label %.lr.ph94, label %._crit_edge95, !llvm.loop !17

156:                                              ; preds = %._crit_edge95
  %157 = load i32, ptr %22, align 4, !tbaa !8
  %.not97 = icmp sgt i32 %157, 1
  br i1 %.not97, label %.lr.ph102.preheader, label %.invoke116

.lr.ph102.preheader:                              ; preds = %156
  %158 = load i32, ptr %123, align 16, !tbaa !8
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [200000 x i32], ptr %19, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !8
  %162 = getelementptr inbounds [200000 x i32], ptr %18, i64 0, i64 %159
  %163 = load i32, ptr %162, align 4, !tbaa !8
  %wide.trip.count = zext nneg i32 %157 to i64
  br label %.lr.ph102

164:                                              ; preds = %172
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next111, %wide.trip.count
  br i1 %exitcond.not, label %.invoke116, label %.lr.ph102, !llvm.loop !18

.lr.ph102:                                        ; preds = %.lr.ph102.preheader, %164
  %indvars.iv110 = phi i64 [ 1, %.lr.ph102.preheader ], [ %indvars.iv.next111, %164 ]
  %.04199 = phi i32 [ %161, %.lr.ph102.preheader ], [ %174, %164 ]
  %.04298 = phi i32 [ %163, %.lr.ph102.preheader ], [ %169, %164 ]
  %165 = getelementptr inbounds i32, ptr %123, i64 %indvars.iv110
  %166 = load i32, ptr %165, align 4, !tbaa !8
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [200000 x i32], ptr %18, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !8
  %170 = icmp slt i32 %169, %.04298
  %171 = icmp sgt i32 %169, %.04199
  %or.cond = select i1 %170, i1 true, i1 %171
  br i1 %or.cond, label %.invoke116, label %172

172:                                              ; preds = %.lr.ph102
  %173 = getelementptr inbounds [200000 x i32], ptr %19, i64 0, i64 %167
  %174 = load i32, ptr %173, align 4, !tbaa !8
  %175 = icmp slt i32 %174, %.04298
  %176 = icmp sgt i32 %174, %.04199
  %or.cond73 = select i1 %175, i1 true, i1 %176
  br i1 %or.cond73, label %.invoke116, label %164

177:                                              ; preds = %.invoke116, %.invoke
  %178 = landingpad { ptr, i32 }
          cleanup
  br label %186

.invoke116:                                       ; preds = %164, %.lr.ph102, %172, %156
  %179 = phi ptr [ @.str, %156 ], [ @.str.1, %172 ], [ @.str.1, %.lr.ph102 ], [ @.str, %164 ]
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %179)
          to label %.invoke unwind label %177

.invoke:                                          ; preds = %.invoke116
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %180, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %182 unwind label %177

182:                                              ; preds = %.invoke
  call void @llvm.stackrestore.p0(ptr %122)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  %183 = add nuw nsw i32 %.054103, 1
  %184 = load i32, ptr %2, align 4, !tbaa !8
  %185 = icmp slt i32 %183, %184
  br i1 %185, label %.lr.ph104, label %._crit_edge105, !llvm.loop !19

186:                                              ; preds = %177, %139, %127
  %.pn = phi { ptr, i32 } [ %140, %139 ], [ %178, %177 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  br label %187

187:                                              ; preds = %186, %116
  %.pn.pn = phi { ptr, i32 } [ %.pn, %186 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #8
  br label %188

188:                                              ; preds = %187, %114
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %187 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 800000, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 800000, ptr nonnull %18) #8
  br label %189

189:                                              ; preds = %188, %103, %89
  %.pn67 = phi { ptr, i32 } [ %104, %103 ], [ %.pn.pn.pn, %188 ], [ %90, %89 ]
  call void @_ZNSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #8
  br label %190

190:                                              ; preds = %189, %87
  %.pn67.pn = phi { ptr, i32 } [ %.pn67, %189 ], [ %88, %87 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #8
  br label %196

191:                                              ; preds = %191, %._crit_edge105
  %192 = phi ptr [ %35, %._crit_edge105 ], [ %193, %191 ]
  %193 = getelementptr inbounds i8, ptr %192, i64 -24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %193) #8
  %194 = icmp eq ptr %193, %3
  br i1 %194, label %195, label %191

195:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 4800000, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

196:                                              ; preds = %190, %85, %72
  %.pn70.pn = phi { ptr, i32 } [ %.pn70, %72 ], [ %.pn67.pn, %190 ], [ %86, %85 ]
  br label %197

197:                                              ; preds = %197, %196
  %198 = phi ptr [ %35, %196 ], [ %199, %197 ]
  %199 = getelementptr inbounds i8, ptr %198, i64 -24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %199) #8
  %200 = icmp eq ptr %199, %3
  br i1 %200, label %201, label %197

201:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 4800000, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn70.pn
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #7

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueISt4pairIiiESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIPiZ4mainE3$_0EvT_S2_T0_"(ptr noundef, ptr noundef, i64, ptr) local_unnamed_addr #7

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

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !9, i64 0}
!14 = !{!"_ZTSSt4pairIiiE", !9, i64 0, !9, i64 4}
!15 = !{!14, !9, i64 4}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


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