; LLVM IR from eyangch/competitive-programming :: Codeforces/1749 (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::__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 }
%"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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_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 { i64, i64 }

@dx2 = external dso_local global [4 x i64], align 16
@dy2 = external dso_local global [4 x i64], align 16
@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@_Z1SB5cxx11 = external dso_local global [200000 x %"class.std::__cxx11::basic_string"], align 16
@dp = external dso_local global [200000 x %"class.std::vector"], align 16
@vis = external dso_local global [200000 x %"class.std::vector"], align 16
@ord = external dso_local global [200000 x %"class.std::vector"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z2okxx(i64 noundef, i64 noundef) #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 noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #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 norecurse uwtable
define dso_local noundef i32 @main() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca double, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::deque", align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %37 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %38 = getelementptr i8, ptr %37, i64 -24
  %39 = load i64, ptr %38, align 8
  %40 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %39
  %41 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %40, ptr noundef null)
  %42 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  br label %44

44:                                               ; preds = %433, %431, %0
  %45 = load i64, ptr @T, align 8, !tbaa !8
  %46 = add nsw i64 %45, -1
  store i64 %46, ptr @T, align 8, !tbaa !8
  %47 = icmp ne i64 %45, 0
  br i1 %47, label %48, label %437

48:                                               ; preds = %44
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(8) @M)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %51

51:                                               ; preds = %93, %48
  %52 = load i64, ptr %2, align 8, !tbaa !8
  %53 = load i64, ptr @N, align 8, !tbaa !8
  %54 = icmp slt i64 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %96

56:                                               ; preds = %51
  %57 = load i64, ptr %2, align 8, !tbaa !8
  %58 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %57
  %59 = call 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) %58)
  %60 = load i64, ptr %2, align 8, !tbaa !8
  %61 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %60
  %62 = load i64, ptr @M, align 8, !tbaa !8
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %62)
  %63 = load i64, ptr %2, align 8, !tbaa !8
  %64 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @vis, i64 0, i64 %63
  %65 = load i64, ptr @M, align 8, !tbaa !8
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %65)
  %66 = load i64, ptr %2, align 8, !tbaa !8
  %67 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @ord, i64 0, i64 %66
  %68 = load i64, ptr @M, align 8, !tbaa !8
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %68)
  %69 = load i64, ptr %2, align 8, !tbaa !8
  %70 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %69
  %71 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #6
  %72 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
  store ptr %71, ptr %72, align 8
  %73 = load i64, ptr %2, align 8, !tbaa !8
  %74 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %73
  %75 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #6
  %76 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %75, ptr %76, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store double 1.000000e+15, ptr %5, align 8, !tbaa !11
  %77 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8
  %79 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEdEvT_S7_RKT0_(ptr %78, ptr %80, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  %81 = load i64, ptr %2, align 8, !tbaa !8
  %82 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @vis, i64 0, i64 %81
  %83 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #6
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %83, ptr %84, align 8
  %85 = load i64, ptr %2, align 8, !tbaa !8
  %86 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @vis, i64 0, i64 %85
  %87 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #6
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %87, ptr %88, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !13
  %89 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8
  %91 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEiEvT_S7_RKT0_(ptr %90, ptr %92, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %93

93:                                               ; preds = %56
  %94 = load i64, ptr %2, align 8, !tbaa !8
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %2, align 8, !tbaa !8
  br label %51, !llvm.loop !15

96:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #6
  call void @_ZNSt5dequeISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !8
  br label %97

97:                                               ; preds = %140, %96
  %98 = load i64, ptr %10, align 8, !tbaa !8
  %99 = load i64, ptr @N, align 8, !tbaa !8
  %100 = icmp slt i64 %98, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %144

102:                                              ; preds = %97
  %103 = load i64, ptr %10, align 8, !tbaa !8
  %104 = invoke noundef zeroext i1 @_Z2okxx(i64 noundef %103, i64 noundef 0)
          to label %105 unwind label %107

105:                                              ; preds = %102
  br i1 %104, label %111, label %106

106:                                              ; preds = %105
  br label %140

107:                                              ; preds = %111, %102
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %11, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %12, align 4
  br label %143

111:                                              ; preds = %105
  %112 = load i64, ptr %10, align 8, !tbaa !8
  %113 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %112
  %114 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %113, i64 noundef 0)
          to label %115 unwind label %107

115:                                              ; preds = %111
  %116 = load i8, ptr %114, align 1, !tbaa !17
  %117 = sext i8 %116 to i32
  %118 = icmp eq i32 %117, 35
  br i1 %118, label %119, label %129

119:                                              ; preds = %115
  %120 = load i64, ptr %10, align 8, !tbaa !8
  %121 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %120
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef 0) #6
  store i64 0, ptr %122, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !13
  invoke void @_ZNSt4pairIxxEC2IRxiTnNSt9enable_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) %10, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %123 unwind label %125

123:                                              ; preds = %119
  invoke void @_ZNSt5dequeISt4pairIxxESaIS1_EE10push_frontEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %124 unwind label %125

124:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %139

125:                                              ; preds = %123, %119
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %11, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %143

129:                                              ; preds = %115
  %130 = load i64, ptr %10, align 8, !tbaa !8
  %131 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %130
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef 0) #6
  store i64 1, ptr %132, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !13
  invoke void @_ZNSt4pairIxxEC2IRxiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %133 unwind label %135

133:                                              ; preds = %129
  invoke void @_ZNSt5dequeISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %134 unwind label %135

134:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %139

135:                                              ; preds = %133, %129
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %11, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %143

139:                                              ; preds = %134, %124
  br label %140

140:                                              ; preds = %139, %106
  %141 = load i64, ptr %10, align 8, !tbaa !8
  %142 = add nsw i64 %141, 1
  store i64 %142, ptr %10, align 8, !tbaa !8
  br label %97, !llvm.loop !18

143:                                              ; preds = %135, %125, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %436

144:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 0, ptr %17, align 8, !tbaa !8
  br label %145

145:                                              ; preds = %268, %266, %144
  %146 = call noundef zeroext i1 @_ZNKSt5dequeISt4pairIxxESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %9) #6
  %147 = xor i1 %146, true
  br i1 %147, label %148, label %269

148:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %149 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5dequeISt4pairIxxESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %9) #6
  %150 = getelementptr inbounds %"struct.std::pair", ptr %149, i32 0, i32 0
  %151 = load i64, ptr %150, align 8, !tbaa !19
  store i64 %151, ptr %18, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %152 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5dequeISt4pairIxxESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %9) #6
  %153 = getelementptr inbounds %"struct.std::pair", ptr %152, i32 0, i32 1
  %154 = load i64, ptr %153, align 8, !tbaa !21
  store i64 %154, ptr %19, align 8, !tbaa !8
  call void @_ZNSt5dequeISt4pairIxxESaIS1_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %9) #6
  %155 = load i64, ptr %18, align 8, !tbaa !8
  %156 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @vis, i64 0, i64 %155
  %157 = load i64, ptr %19, align 8, !tbaa !8
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %157) #6
  %159 = load i64, ptr %158, align 8, !tbaa !8
  %160 = icmp ne i64 %159, 0
  br i1 %160, label %161, label %162

161:                                              ; preds = %148
  store i32 10, ptr %20, align 4
  br label %266, !llvm.loop !22

162:                                              ; preds = %148
  %163 = load i64, ptr %18, align 8, !tbaa !8
  %164 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @vis, i64 0, i64 %163
  %165 = load i64, ptr %19, align 8, !tbaa !8
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %164, i64 noundef %165) #6
  store i64 1, ptr %166, align 8, !tbaa !8
  %167 = load i64, ptr %17, align 8, !tbaa !8
  %168 = add nsw i64 %167, 1
  store i64 %168, ptr %17, align 8, !tbaa !8
  %169 = load i64, ptr %18, align 8, !tbaa !8
  %170 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @ord, i64 0, i64 %169
  %171 = load i64, ptr %19, align 8, !tbaa !8
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %170, i64 noundef %171) #6
  store i64 %167, ptr %172, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store i64 0, ptr %21, align 8, !tbaa !8
  br label %173

173:                                              ; preds = %260, %162
  %174 = load i64, ptr %21, align 8, !tbaa !8
  %175 = icmp slt i64 %174, 4
  br i1 %175, label %177, label %176

176:                                              ; preds = %173
  store i32 12, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %265

177:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %178 = load i64, ptr %18, align 8, !tbaa !8
  %179 = load i64, ptr %21, align 8, !tbaa !8
  %180 = getelementptr inbounds [4 x i64], ptr @dx2, i64 0, i64 %179
  %181 = load i64, ptr %180, align 8, !tbaa !8
  %182 = add nsw i64 %178, %181
  store i64 %182, ptr %22, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %183 = load i64, ptr %19, align 8, !tbaa !8
  %184 = load i64, ptr %21, align 8, !tbaa !8
  %185 = getelementptr inbounds [4 x i64], ptr @dy2, i64 0, i64 %184
  %186 = load i64, ptr %185, align 8, !tbaa !8
  %187 = add nsw i64 %183, %186
  store i64 %187, ptr %23, align 8, !tbaa !8
  %188 = load i64, ptr %22, align 8, !tbaa !8
  %189 = load i64, ptr %23, align 8, !tbaa !8
  %190 = invoke noundef zeroext i1 @_Z2okxx(i64 noundef %188, i64 noundef %189)
          to label %191 unwind label %193

191:                                              ; preds = %177
  br i1 %190, label %197, label %192

192:                                              ; preds = %191
  store i32 14, ptr %20, align 4
  br label %257

193:                                              ; preds = %177
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %11, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %12, align 4
  br label %264

197:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %198 = load i64, ptr %18, align 8, !tbaa !8
  %199 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %198
  %200 = load i64, ptr %19, align 8, !tbaa !8
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %199, i64 noundef %200) #6
  %202 = load i64, ptr %201, align 8, !tbaa !8
  %203 = add nsw i64 %202, 1
  store i64 %203, ptr %24, align 8, !tbaa !8
  %204 = load i64, ptr %22, align 8, !tbaa !8
  %205 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %204
  %206 = load i64, ptr %23, align 8, !tbaa !8
  %207 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %205, i64 noundef %206)
          to label %208 unwind label %215

208:                                              ; preds = %197
  %209 = load i8, ptr %207, align 1, !tbaa !17
  %210 = sext i8 %209 to i32
  %211 = icmp eq i32 %210, 35
  br i1 %211, label %212, label %219

212:                                              ; preds = %208
  %213 = load i64, ptr %24, align 8, !tbaa !8
  %214 = add nsw i64 %213, -1
  store i64 %214, ptr %24, align 8, !tbaa !8
  br label %219

215:                                              ; preds = %227, %197
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %11, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %12, align 4
  br label %263

219:                                              ; preds = %212, %208
  %220 = load i64, ptr %22, align 8, !tbaa !8
  %221 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %220
  %222 = load i64, ptr %23, align 8, !tbaa !8
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %221, i64 noundef %222) #6
  %224 = load i64, ptr %223, align 8, !tbaa !8
  %225 = load i64, ptr %24, align 8, !tbaa !8
  %226 = icmp sgt i64 %224, %225
  br i1 %226, label %227, label %256

227:                                              ; preds = %219
  %228 = load i64, ptr %24, align 8, !tbaa !8
  %229 = load i64, ptr %22, align 8, !tbaa !8
  %230 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %229
  %231 = load i64, ptr %23, align 8, !tbaa !8
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %230, i64 noundef %231) #6
  store i64 %228, ptr %232, align 8, !tbaa !8
  %233 = load i64, ptr %22, align 8, !tbaa !8
  %234 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %233
  %235 = load i64, ptr %23, align 8, !tbaa !8
  %236 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %234, i64 noundef %235)
          to label %237 unwind label %215

237:                                              ; preds = %227
  %238 = load i8, ptr %236, align 1, !tbaa !17
  %239 = sext i8 %238 to i32
  %240 = icmp eq i32 %239, 35
  br i1 %240, label %241, label %248

241:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  invoke void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %242 unwind label %244

242:                                              ; preds = %241
  invoke void @_ZNSt5dequeISt4pairIxxESaIS1_EE10push_frontEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %243 unwind label %244

243:                                              ; preds = %242
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  br label %255

244:                                              ; preds = %242, %241
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %11, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  br label %263

248:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  invoke void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %249 unwind label %251

249:                                              ; preds = %248
  invoke void @_ZNSt5dequeISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %250 unwind label %251

250:                                              ; preds = %249
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  br label %255

251:                                              ; preds = %249, %248
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %11, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  br label %263

255:                                              ; preds = %250, %243
  br label %256

256:                                              ; preds = %255, %219
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  store i32 0, ptr %20, align 4
  br label %257

257:                                              ; preds = %256, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  %258 = load i32, ptr %20, align 4
  switch i32 %258, label %444 [
    i32 0, label %259
    i32 14, label %260
  ]

259:                                              ; preds = %257
  br label %260

260:                                              ; preds = %259, %257
  %261 = load i64, ptr %21, align 8, !tbaa !8
  %262 = add nsw i64 %261, 1
  store i64 %262, ptr %21, align 8, !tbaa !8
  br label %173, !llvm.loop !23

263:                                              ; preds = %251, %244, %215
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %264

264:                                              ; preds = %263, %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %435

265:                                              ; preds = %176
  store i32 0, ptr %20, align 4
  br label %266

266:                                              ; preds = %265, %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  %267 = load i32, ptr %20, align 4
  switch i32 %267, label %444 [
    i32 0, label %268
    i32 10, label %145
  ]

268:                                              ; preds = %266
  br label %145, !llvm.loop !22

269:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  store i64 1000000000000000, ptr %27, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  store i64 0, ptr %28, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %270 = load i64, ptr @M, align 8, !tbaa !8
  %271 = sub nsw i64 %270, 1
  store i64 %271, ptr %29, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  store i64 0, ptr %30, align 8, !tbaa !8
  br label %272

272:                                              ; preds = %295, %269
  %273 = load i64, ptr %30, align 8, !tbaa !8
  %274 = load i64, ptr @N, align 8, !tbaa !8
  %275 = icmp slt i64 %273, %274
  br i1 %275, label %277, label %276

276:                                              ; preds = %272
  store i32 15, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %298

277:                                              ; preds = %272
  %278 = load i64, ptr %30, align 8, !tbaa !8
  %279 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %278
  %280 = load i64, ptr @M, align 8, !tbaa !8
  %281 = sub nsw i64 %280, 1
  %282 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %279, i64 noundef %281) #6
  %283 = load i64, ptr %282, align 8, !tbaa !8
  %284 = load i64, ptr %27, align 8, !tbaa !8
  %285 = icmp slt i64 %283, %284
  br i1 %285, label %286, label %294

286:                                              ; preds = %277
  %287 = load i64, ptr %30, align 8, !tbaa !8
  %288 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %287
  %289 = load i64, ptr @M, align 8, !tbaa !8
  %290 = sub nsw i64 %289, 1
  %291 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef %290) #6
  %292 = load i64, ptr %291, align 8, !tbaa !8
  store i64 %292, ptr %27, align 8, !tbaa !8
  %293 = load i64, ptr %30, align 8, !tbaa !8
  store i64 %293, ptr %28, align 8, !tbaa !8
  br label %294

294:                                              ; preds = %286, %277
  br label %295

295:                                              ; preds = %294
  %296 = load i64, ptr %30, align 8, !tbaa !8
  %297 = add nsw i64 %296, 1
  store i64 %297, ptr %30, align 8, !tbaa !8
  br label %272, !llvm.loop !24

298:                                              ; preds = %276
  %299 = load i64, ptr %27, align 8, !tbaa !8
  %300 = sitofp i64 %299 to double
  %301 = fcmp ogt double %300, 1.000000e+10
  br i1 %301, label %302, label %311

302:                                              ; preds = %298
  %303 = 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 %304 unwind label %307

304:                                              ; preds = %302
  %305 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %303, i8 noundef signext 10)
          to label %306 unwind label %307

306:                                              ; preds = %304
  store i32 2, ptr %20, align 4
  br label %431, !llvm.loop !25

307:                                              ; preds = %313, %311, %304, %302
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %11, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %12, align 4
  br label %434

311:                                              ; preds = %298
  %312 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
          to label %313 unwind label %307

313:                                              ; preds = %311
  %314 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %312, i8 noundef signext 10)
          to label %315 unwind label %307

315:                                              ; preds = %313
  br label %316

316:                                              ; preds = %408, %315
  br label %317

317:                                              ; preds = %316
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %318 = load i64, ptr %28, align 8, !tbaa !8
  %319 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %318
  %320 = load i64, ptr %29, align 8, !tbaa !8
  %321 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %319, i64 noundef %320) #6
  %322 = load i64, ptr %321, align 8, !tbaa !8
  store i64 %322, ptr %31, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %323 = load i64, ptr %28, align 8, !tbaa !8
  %324 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %323
  %325 = load i64, ptr %29, align 8, !tbaa !8
  %326 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %324, i64 noundef %325)
          to label %327 unwind label %342

327:                                              ; preds = %317
  %328 = load i8, ptr %326, align 1, !tbaa !17
  %329 = sext i8 %328 to i32
  %330 = icmp eq i32 %329, 35
  %331 = zext i1 %330 to i32
  %332 = sub nsw i32 1, %331
  %333 = sext i32 %332 to i64
  store i64 %333, ptr %32, align 8, !tbaa !8
  %334 = load i64, ptr %28, align 8, !tbaa !8
  %335 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %334
  %336 = load i64, ptr %29, align 8, !tbaa !8
  %337 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %335, i64 noundef %336)
          to label %338 unwind label %342

338:                                              ; preds = %327
  store i8 35, ptr %337, align 1, !tbaa !17
  %339 = load i64, ptr %29, align 8, !tbaa !8
  %340 = icmp eq i64 %339, 0
  br i1 %340, label %341, label %346

341:                                              ; preds = %338
  store i32 19, ptr %20, align 4
  br label %406

342:                                              ; preds = %327, %317
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %11, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %12, align 4
  br label %409

346:                                              ; preds = %338
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  store i64 0, ptr %33, align 8, !tbaa !8
  br label %347

347:                                              ; preds = %401, %346
  %348 = load i64, ptr %33, align 8, !tbaa !8
  %349 = icmp slt i64 %348, 4
  br i1 %349, label %351, label %350

350:                                              ; preds = %347
  store i32 20, ptr %20, align 4
  br label %404

351:                                              ; preds = %347
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %352 = load i64, ptr %28, align 8, !tbaa !8
  %353 = load i64, ptr %33, align 8, !tbaa !8
  %354 = getelementptr inbounds [4 x i64], ptr @dx2, i64 0, i64 %353
  %355 = load i64, ptr %354, align 8, !tbaa !8
  %356 = add nsw i64 %352, %355
  store i64 %356, ptr %34, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %357 = load i64, ptr %29, align 8, !tbaa !8
  %358 = load i64, ptr %33, align 8, !tbaa !8
  %359 = getelementptr inbounds [4 x i64], ptr @dy2, i64 0, i64 %358
  %360 = load i64, ptr %359, align 8, !tbaa !8
  %361 = add nsw i64 %357, %360
  store i64 %361, ptr %35, align 8, !tbaa !8
  %362 = load i64, ptr %34, align 8, !tbaa !8
  %363 = load i64, ptr %35, align 8, !tbaa !8
  %364 = invoke noundef zeroext i1 @_Z2okxx(i64 noundef %362, i64 noundef %363)
          to label %365 unwind label %367

365:                                              ; preds = %351
  br i1 %364, label %371, label %366

366:                                              ; preds = %365
  store i32 22, ptr %20, align 4
  br label %398

367:                                              ; preds = %351
  %368 = landingpad { ptr, i32 }
          cleanup
  %369 = extractvalue { ptr, i32 } %368, 0
  store ptr %369, ptr %11, align 8
  %370 = extractvalue { ptr, i32 } %368, 1
  store i32 %370, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %409

371:                                              ; preds = %365
  %372 = load i64, ptr %34, align 8, !tbaa !8
  %373 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @ord, i64 0, i64 %372
  %374 = load i64, ptr %35, align 8, !tbaa !8
  %375 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %373, i64 noundef %374) #6
  %376 = load i64, ptr %375, align 8, !tbaa !8
  %377 = load i64, ptr %28, align 8, !tbaa !8
  %378 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @ord, i64 0, i64 %377
  %379 = load i64, ptr %29, align 8, !tbaa !8
  %380 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %378, i64 noundef %379) #6
  %381 = load i64, ptr %380, align 8, !tbaa !8
  %382 = icmp sgt i64 %376, %381
  br i1 %382, label %383, label %384

383:                                              ; preds = %371
  store i32 22, ptr %20, align 4
  br label %398

384:                                              ; preds = %371
  %385 = load i64, ptr %34, align 8, !tbaa !8
  %386 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %385
  %387 = load i64, ptr %35, align 8, !tbaa !8
  %388 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %386, i64 noundef %387) #6
  %389 = load i64, ptr %388, align 8, !tbaa !8
  %390 = load i64, ptr %31, align 8, !tbaa !8
  %391 = load i64, ptr %32, align 8, !tbaa !8
  %392 = sub nsw i64 %390, %391
  %393 = icmp eq i64 %389, %392
  br i1 %393, label %394, label %397

394:                                              ; preds = %384
  %395 = load i64, ptr %34, align 8, !tbaa !8
  store i64 %395, ptr %28, align 8, !tbaa !8
  %396 = load i64, ptr %35, align 8, !tbaa !8
  store i64 %396, ptr %29, align 8, !tbaa !8
  store i32 20, ptr %20, align 4
  br label %398

397:                                              ; preds = %384
  store i32 0, ptr %20, align 4
  br label %398

398:                                              ; preds = %397, %394, %383, %366
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  %399 = load i32, ptr %20, align 4
  switch i32 %399, label %404 [
    i32 0, label %400
    i32 22, label %401
  ]

400:                                              ; preds = %398
  br label %401

401:                                              ; preds = %400, %398
  %402 = load i64, ptr %33, align 8, !tbaa !8
  %403 = add nsw i64 %402, 1
  store i64 %403, ptr %33, align 8, !tbaa !8
  br label %347, !llvm.loop !26

404:                                              ; preds = %398, %350
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %405

405:                                              ; preds = %404
  store i32 0, ptr %20, align 4
  br label %406

406:                                              ; preds = %405, %341
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  %407 = load i32, ptr %20, align 4
  switch i32 %407, label %444 [
    i32 0, label %408
    i32 19, label %410
  ]

408:                                              ; preds = %406
  br label %316, !llvm.loop !27

409:                                              ; preds = %367, %342
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %434

410:                                              ; preds = %406
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  store i64 0, ptr %36, align 8, !tbaa !8
  br label %411

411:                                              ; preds = %423, %410
  %412 = load i64, ptr %36, align 8, !tbaa !8
  %413 = load i64, ptr @N, align 8, !tbaa !8
  %414 = icmp slt i64 %412, %413
  br i1 %414, label %416, label %415

415:                                              ; preds = %411
  store i32 23, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %430

416:                                              ; preds = %411
  %417 = load i64, ptr %36, align 8, !tbaa !8
  %418 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %417
  %419 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %418)
          to label %420 unwind label %426

420:                                              ; preds = %416
  %421 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %419, i8 noundef signext 10)
          to label %422 unwind label %426

422:                                              ; preds = %420
  br label %423

423:                                              ; preds = %422
  %424 = load i64, ptr %36, align 8, !tbaa !8
  %425 = add nsw i64 %424, 1
  store i64 %425, ptr %36, align 8, !tbaa !8
  br label %411, !llvm.loop !28

426:                                              ; preds = %420, %416
  %427 = landingpad { ptr, i32 }
          cleanup
  %428 = extractvalue { ptr, i32 } %427, 0
  store ptr %428, ptr %11, align 8
  %429 = extractvalue { ptr, i32 } %427, 1
  store i32 %429, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %434

430:                                              ; preds = %415
  store i32 0, ptr %20, align 4
  br label %431

431:                                              ; preds = %430, %306
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZNSt5dequeISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #6
  %432 = load i32, ptr %20, align 4
  switch i32 %432, label %444 [
    i32 0, label %433
    i32 2, label %44
  ]

433:                                              ; preds = %431
  br label %44, !llvm.loop !25

434:                                              ; preds = %426, %409, %307
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %435

435:                                              ; preds = %434, %264
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %436

436:                                              ; preds = %435, %143
  call void @_ZNSt5dequeISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #6
  br label %439

437:                                              ; preds = %44
  %438 = load i32, ptr %1, align 4
  ret i32 %438

439:                                              ; preds = %436
  %440 = load ptr, ptr %11, align 8
  %441 = load i32, ptr %12, align 4
  %442 = insertvalue { ptr, i32 } poison, ptr %440, 0
  %443 = insertvalue { ptr, i32 } %442, i32 %441, 1
  resume { ptr, i32 } %443

444:                                              ; preds = %431, %406, %266, %257
  unreachable
}

; 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 zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #4

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; 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) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxxEC2IRxiTnNSt9enable_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 4 dereferenceable(4)) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_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 #2 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) #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) 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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !16}
!19 = !{!20, !9, i64 0}
!20 = !{!"_ZTSSt4pairIxxE", !9, i64 0, !9, i64 8}
!21 = !{!20, !9, i64 8}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}
!28 = distinct !{!28, !16}


; 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::__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 }
%"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::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<long long, long long>, std::allocator<std::pair<long long, long long>>>::_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 { i64, i64 }

@dx2 = external dso_local local_unnamed_addr global [4 x i64], align 16
@dy2 = external dso_local local_unnamed_addr global [4 x i64], align 16
@T = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@_Z1SB5cxx11 = external dso_local global [200000 x %"class.std::__cxx11::basic_string"], align 16
@dp = external dso_local global [200000 x %"class.std::vector"], align 16
@vis = external dso_local global [200000 x %"class.std::vector"], align 16
@ord = external dso_local global [200000 x %"class.std::vector"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z2okxx(i64 noundef, i64 noundef) 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 noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) 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 norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca double, align 8
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::deque", align 8
  %4 = alloca i64, align 8
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %14 = getelementptr i8, ptr %13, i64 -24
  %15 = load i64, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %15
  %17 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %16, ptr noundef null)
  %18 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %19 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @T)
  %20 = load i64, ptr @T, align 8, !tbaa !8
  %21 = add nsw i64 %20, -1
  store i64 %21, ptr @T, align 8, !tbaa !8
  %.not139 = icmp eq i64 %20, 0
  br i1 %.not139, label %._crit_edge142, label %.lr.ph141

.lr.ph141:                                        ; preds = %0, %.loopexit117
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) @M)
  %24 = load i64, ptr @N, align 8, !tbaa !8
  %25 = icmp sgt i64 %24, 0
  br i1 %25, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph141
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #6
  call void @_ZNSt5dequeISt4pairIxxESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store i64 0, ptr %4, align 8, !tbaa !8
  %26 = load i64, ptr @N, align 8, !tbaa !8
  %27 = icmp sgt i64 %26, 0
  br i1 %27, label %.lr.ph122, label %._crit_edge123

.lr.ph:                                           ; preds = %.lr.ph141, %.lr.ph
  %.070119 = phi i64 [ %40, %.lr.ph ], [ 0, %.lr.ph141 ]
  %28 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.070119
  %29 = call 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) %28)
  %30 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %.070119
  %31 = load i64, ptr @M, align 8, !tbaa !8
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %31)
  %32 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @vis, i64 0, i64 %.070119
  %33 = load i64, ptr @M, align 8, !tbaa !8
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %33)
  %34 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @ord, i64 0, i64 %.070119
  %35 = load i64, ptr @M, align 8, !tbaa !8
  call void @_ZNSt6vectorIxSaIxEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %35)
  %36 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %37 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  store double 1.000000e+15, ptr %1, align 8, !tbaa !11
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEdEvT_S7_RKT0_(ptr %36, ptr %37, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  %38 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %39 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  store i32 0, ptr %2, align 4, !tbaa !13
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEiEvT_S7_RKT0_(ptr %38, ptr %39, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  %40 = add nuw nsw i64 %.070119, 1
  %41 = load i64, ptr @N, align 8, !tbaa !8
  %42 = icmp slt i64 %40, %41
  br i1 %42, label %.lr.ph, label %._crit_edge, !llvm.loop !15

._crit_edge123:                                   ; preds = %65, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %43 = call noundef zeroext i1 @_ZNKSt5dequeISt4pairIxxESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3) #6
  br i1 %43, label %._crit_edge128, label %.lr.ph127

.lr.ph122:                                        ; preds = %._crit_edge, %65
  %storemerge120 = phi i64 [ %67, %65 ], [ 0, %._crit_edge ]
  %44 = invoke noundef zeroext i1 @_Z2okxx(i64 noundef %storemerge120, i64 noundef 0)
          to label %45 unwind label %46

45:                                               ; preds = %.lr.ph122
  br i1 %44, label %48, label %65

46:                                               ; preds = %.lr.ph122
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %70

48:                                               ; preds = %45
  %49 = load i64, ptr %4, align 8, !tbaa !8
  %50 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %49
  %51 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %50, i64 noundef 0)
  %52 = load i8, ptr %51, align 1, !tbaa !17
  %53 = icmp eq i8 %52, 35
  %54 = load i64, ptr %4, align 8, !tbaa !8
  %55 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %54
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef 0) #6
  br i1 %53, label %57, label %61

57:                                               ; preds = %48
  store i64 0, ptr %56, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store i32 0, ptr %6, align 4, !tbaa !13
  call void @_ZNSt4pairIxxEC2IRxiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %6)
  invoke void @_ZNSt5dequeISt4pairIxxESaIS1_EE10push_frontEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %58 unwind label %59

58:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %65

59:                                               ; preds = %57
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %70

61:                                               ; preds = %48
  store i64 1, ptr %56, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 0, ptr %8, align 4, !tbaa !13
  call void @_ZNSt4pairIxxEC2IRxiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %8)
  invoke void @_ZNSt5dequeISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %62 unwind label %63

62:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %65

63:                                               ; preds = %61
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %70

65:                                               ; preds = %58, %62, %45
  %66 = load i64, ptr %4, align 8, !tbaa !8
  %67 = add nsw i64 %66, 1
  store i64 %67, ptr %4, align 8, !tbaa !8
  %68 = load i64, ptr @N, align 8, !tbaa !8
  %69 = icmp slt i64 %67, %68
  br i1 %69, label %.lr.ph122, label %._crit_edge123, !llvm.loop !18

70:                                               ; preds = %63, %59, %46
  %.pn106 = phi { ptr, i32 } [ %60, %59 ], [ %64, %63 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %384

.lr.ph127:                                        ; preds = %._crit_edge123, %.loopexit115
  %.079125 = phi i64 [ %.180, %.loopexit115 ], [ 0, %._crit_edge123 ]
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5dequeISt4pairIxxESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3) #6
  %72 = load i64, ptr %71, align 8, !tbaa !19
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5dequeISt4pairIxxESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3) #6
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load i64, ptr %74, align 8, !tbaa !21
  call void @_ZNSt5dequeISt4pairIxxESaIS1_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3) #6
  %76 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @vis, i64 0, i64 %72
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %75) #6
  %78 = load i64, ptr %77, align 8, !tbaa !8
  %.not101 = icmp eq i64 %78, 0
  br i1 %.not101, label %79, label %.loopexit115, !llvm.loop !22

79:                                               ; preds = %.lr.ph127
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %75) #6
  store i64 1, ptr %80, align 8, !tbaa !8
  %81 = add nsw i64 %.079125, 1
  %82 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @ord, i64 0, i64 %72
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %75) #6
  store i64 %.079125, ptr %83, align 8, !tbaa !8
  %84 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %85 = load i64, ptr @dx2, align 16, !tbaa !8
  %86 = add nsw i64 %85, %72
  store i64 %86, ptr %9, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %87 = load i64, ptr @dy2, align 16, !tbaa !8
  %88 = add nsw i64 %87, %75
  store i64 %88, ptr %10, align 8, !tbaa !8
  %89 = invoke noundef zeroext i1 @_Z2okxx(i64 noundef %86, i64 noundef %88)
          to label %90 unwind label %91

90:                                               ; preds = %79
  br i1 %89, label %93, label %128

91:                                               ; preds = %204, %166, %128, %79
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %242

93:                                               ; preds = %90
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %75) #6
  %95 = load i64, ptr %94, align 8, !tbaa !8
  %96 = load i64, ptr %9, align 8, !tbaa !8
  %97 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %96
  %98 = load i64, ptr %10, align 8, !tbaa !8
  %99 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %97, i64 noundef %98)
  %100 = load i8, ptr %99, align 1, !tbaa !17
  %101 = icmp ne i8 %100, 35
  %102 = zext i1 %101 to i64
  %spec.select = add nsw i64 %95, %102
  %103 = load i64, ptr %9, align 8, !tbaa !8
  %104 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %103
  %105 = load i64, ptr %10, align 8, !tbaa !8
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef %105) #6
  %107 = load i64, ptr %106, align 8, !tbaa !8
  %108 = icmp sgt i64 %107, %spec.select
  br i1 %108, label %109, label %128

109:                                              ; preds = %93
  %110 = load i64, ptr %9, align 8, !tbaa !8
  %111 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %110
  %112 = load i64, ptr %10, align 8, !tbaa !8
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %112) #6
  store i64 %spec.select, ptr %113, align 8, !tbaa !8
  %114 = load i64, ptr %9, align 8, !tbaa !8
  %115 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %114
  %116 = load i64, ptr %10, align 8, !tbaa !8
  %117 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %115, i64 noundef %116)
  %118 = load i8, ptr %117, align 1, !tbaa !17
  %119 = icmp eq i8 %118, 35
  br i1 %119, label %120, label %124

120:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZNSt5dequeISt4pairIxxESaIS1_EE10push_frontEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %121 unwind label %122

121:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %128

122:                                              ; preds = %240, %202, %164, %120
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %242

124:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZNSt5dequeISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %125 unwind label %126

125:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %128

126:                                              ; preds = %238, %200, %162, %124
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %242

128:                                              ; preds = %93, %125, %121, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %129 = load i64, ptr getelementptr inbounds (i8, ptr @dx2, i64 8), align 8, !tbaa !8
  %130 = add nsw i64 %129, %72
  store i64 %130, ptr %9, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %131 = load i64, ptr getelementptr inbounds (i8, ptr @dy2, i64 8), align 8, !tbaa !8
  %132 = add nsw i64 %131, %75
  store i64 %132, ptr %10, align 8, !tbaa !8
  %133 = invoke noundef zeroext i1 @_Z2okxx(i64 noundef %130, i64 noundef %132)
          to label %134 unwind label %91

134:                                              ; preds = %128
  br i1 %133, label %135, label %166

135:                                              ; preds = %134
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %75) #6
  %137 = load i64, ptr %136, align 8, !tbaa !8
  %138 = load i64, ptr %9, align 8, !tbaa !8
  %139 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %138
  %140 = load i64, ptr %10, align 8, !tbaa !8
  %141 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %139, i64 noundef %140)
  %142 = load i8, ptr %141, align 1, !tbaa !17
  %143 = icmp ne i8 %142, 35
  %144 = zext i1 %143 to i64
  %spec.select.1 = add nsw i64 %137, %144
  %145 = load i64, ptr %9, align 8, !tbaa !8
  %146 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %145
  %147 = load i64, ptr %10, align 8, !tbaa !8
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %146, i64 noundef %147) #6
  %149 = load i64, ptr %148, align 8, !tbaa !8
  %150 = icmp sgt i64 %149, %spec.select.1
  br i1 %150, label %151, label %166

151:                                              ; preds = %135
  %152 = load i64, ptr %9, align 8, !tbaa !8
  %153 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %152
  %154 = load i64, ptr %10, align 8, !tbaa !8
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %154) #6
  store i64 %spec.select.1, ptr %155, align 8, !tbaa !8
  %156 = load i64, ptr %9, align 8, !tbaa !8
  %157 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %156
  %158 = load i64, ptr %10, align 8, !tbaa !8
  %159 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %157, i64 noundef %158)
  %160 = load i8, ptr %159, align 1, !tbaa !17
  %161 = icmp eq i8 %160, 35
  br i1 %161, label %164, label %162

162:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZNSt5dequeISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %163 unwind label %126

163:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %166

164:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZNSt5dequeISt4pairIxxESaIS1_EE10push_frontEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %165 unwind label %122

165:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %166

166:                                              ; preds = %165, %163, %135, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %167 = load i64, ptr getelementptr inbounds (i8, ptr @dx2, i64 16), align 16, !tbaa !8
  %168 = add nsw i64 %167, %72
  store i64 %168, ptr %9, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %169 = load i64, ptr getelementptr inbounds (i8, ptr @dy2, i64 16), align 16, !tbaa !8
  %170 = add nsw i64 %169, %75
  store i64 %170, ptr %10, align 8, !tbaa !8
  %171 = invoke noundef zeroext i1 @_Z2okxx(i64 noundef %168, i64 noundef %170)
          to label %172 unwind label %91

172:                                              ; preds = %166
  br i1 %171, label %173, label %204

173:                                              ; preds = %172
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %75) #6
  %175 = load i64, ptr %174, align 8, !tbaa !8
  %176 = load i64, ptr %9, align 8, !tbaa !8
  %177 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %176
  %178 = load i64, ptr %10, align 8, !tbaa !8
  %179 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %177, i64 noundef %178)
  %180 = load i8, ptr %179, align 1, !tbaa !17
  %181 = icmp ne i8 %180, 35
  %182 = zext i1 %181 to i64
  %spec.select.2 = add nsw i64 %175, %182
  %183 = load i64, ptr %9, align 8, !tbaa !8
  %184 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %183
  %185 = load i64, ptr %10, align 8, !tbaa !8
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %185) #6
  %187 = load i64, ptr %186, align 8, !tbaa !8
  %188 = icmp sgt i64 %187, %spec.select.2
  br i1 %188, label %189, label %204

189:                                              ; preds = %173
  %190 = load i64, ptr %9, align 8, !tbaa !8
  %191 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %190
  %192 = load i64, ptr %10, align 8, !tbaa !8
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %191, i64 noundef %192) #6
  store i64 %spec.select.2, ptr %193, align 8, !tbaa !8
  %194 = load i64, ptr %9, align 8, !tbaa !8
  %195 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %194
  %196 = load i64, ptr %10, align 8, !tbaa !8
  %197 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %195, i64 noundef %196)
  %198 = load i8, ptr %197, align 1, !tbaa !17
  %199 = icmp eq i8 %198, 35
  br i1 %199, label %202, label %200

200:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZNSt5dequeISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %201 unwind label %126

201:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %204

202:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZNSt5dequeISt4pairIxxESaIS1_EE10push_frontEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %203 unwind label %122

203:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %204

204:                                              ; preds = %203, %201, %173, %172
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %205 = load i64, ptr getelementptr inbounds (i8, ptr @dx2, i64 24), align 8, !tbaa !8
  %206 = add nsw i64 %205, %72
  store i64 %206, ptr %9, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %207 = load i64, ptr getelementptr inbounds (i8, ptr @dy2, i64 24), align 8, !tbaa !8
  %208 = add nsw i64 %207, %75
  store i64 %208, ptr %10, align 8, !tbaa !8
  %209 = invoke noundef zeroext i1 @_Z2okxx(i64 noundef %206, i64 noundef %208)
          to label %210 unwind label %91

210:                                              ; preds = %204
  br i1 %209, label %211, label %.loopexit115.loopexit

211:                                              ; preds = %210
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %75) #6
  %213 = load i64, ptr %212, align 8, !tbaa !8
  %214 = load i64, ptr %9, align 8, !tbaa !8
  %215 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %214
  %216 = load i64, ptr %10, align 8, !tbaa !8
  %217 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %215, i64 noundef %216)
  %218 = load i8, ptr %217, align 1, !tbaa !17
  %219 = icmp ne i8 %218, 35
  %220 = zext i1 %219 to i64
  %spec.select.3 = add nsw i64 %213, %220
  %221 = load i64, ptr %9, align 8, !tbaa !8
  %222 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %221
  %223 = load i64, ptr %10, align 8, !tbaa !8
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %222, i64 noundef %223) #6
  %225 = load i64, ptr %224, align 8, !tbaa !8
  %226 = icmp sgt i64 %225, %spec.select.3
  br i1 %226, label %227, label %.loopexit115.loopexit

227:                                              ; preds = %211
  %228 = load i64, ptr %9, align 8, !tbaa !8
  %229 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %228
  %230 = load i64, ptr %10, align 8, !tbaa !8
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %229, i64 noundef %230) #6
  store i64 %spec.select.3, ptr %231, align 8, !tbaa !8
  %232 = load i64, ptr %9, align 8, !tbaa !8
  %233 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %232
  %234 = load i64, ptr %10, align 8, !tbaa !8
  %235 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %233, i64 noundef %234)
  %236 = load i8, ptr %235, align 1, !tbaa !17
  %237 = icmp eq i8 %236, 35
  br i1 %237, label %240, label %238

238:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZNSt5dequeISt4pairIxxESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %239 unwind label %126

239:                                              ; preds = %238
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %.loopexit115.loopexit

240:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  invoke void @_ZNSt5dequeISt4pairIxxESaIS1_EE10push_frontEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %241 unwind label %122

241:                                              ; preds = %240
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %.loopexit115.loopexit

.loopexit115.loopexit:                            ; preds = %241, %239, %211, %210
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %.loopexit115

242:                                              ; preds = %122, %126, %91
  %.pn102.pn = phi { ptr, i32 } [ %92, %91 ], [ %123, %122 ], [ %127, %126 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %384

.loopexit115:                                     ; preds = %.loopexit115.loopexit, %.lr.ph127
  %.180 = phi i64 [ %.079125, %.lr.ph127 ], [ %81, %.loopexit115.loopexit ]
  %243 = call noundef zeroext i1 @_ZNKSt5dequeISt4pairIxxESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3) #6
  br i1 %243, label %._crit_edge128, label %.lr.ph127

._crit_edge128:                                   ; preds = %.loopexit115, %._crit_edge123
  %244 = load i64, ptr @M, align 8, !tbaa !8
  %245 = add nsw i64 %244, -1
  %246 = load i64, ptr @N, align 8, !tbaa !8
  %247 = icmp sgt i64 %246, 0
  br i1 %247, label %.lr.ph133, label %._crit_edge134.thread

._crit_edge134:                                   ; preds = %260
  %248 = icmp sgt i64 %.194, 10000000000
  br i1 %248, label %._crit_edge134.thread, label %269

.lr.ph133:                                        ; preds = %._crit_edge128, %260
  %.081131 = phi i64 [ %261, %260 ], [ 0, %._crit_edge128 ]
  %.087130 = phi i64 [ %.188, %260 ], [ 0, %._crit_edge128 ]
  %.093129 = phi i64 [ %.194, %260 ], [ 1000000000000000, %._crit_edge128 ]
  %249 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %.081131
  %250 = load i64, ptr @M, align 8, !tbaa !8
  %251 = add nsw i64 %250, -1
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %249, i64 noundef %251) #6
  %253 = load i64, ptr %252, align 8, !tbaa !8
  %254 = icmp slt i64 %253, %.093129
  br i1 %254, label %255, label %260

255:                                              ; preds = %.lr.ph133
  %256 = load i64, ptr @M, align 8, !tbaa !8
  %257 = add nsw i64 %256, -1
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %249, i64 noundef %257) #6
  %259 = load i64, ptr %258, align 8, !tbaa !8
  br label %260

260:                                              ; preds = %.lr.ph133, %255
  %.194 = phi i64 [ %259, %255 ], [ %.093129, %.lr.ph133 ]
  %.188 = phi i64 [ %.081131, %255 ], [ %.087130, %.lr.ph133 ]
  %261 = add nuw nsw i64 %.081131, 1
  %262 = load i64, ptr @N, align 8, !tbaa !8
  %263 = icmp slt i64 %261, %262
  br i1 %263, label %.lr.ph133, label %._crit_edge134, !llvm.loop !23

._crit_edge134.thread:                            ; preds = %._crit_edge128, %._crit_edge134
  %264 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %265 unwind label %267

265:                                              ; preds = %._crit_edge134.thread
  %266 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %264, i8 noundef signext 10)
          to label %.loopexit117 unwind label %267, !llvm.loop !24

267:                                              ; preds = %271, %269, %265, %._crit_edge134.thread
  %268 = landingpad { ptr, i32 }
          cleanup
  br label %384

269:                                              ; preds = %._crit_edge134
  %270 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
          to label %271 unwind label %267

271:                                              ; preds = %269
  %272 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %270, i8 noundef signext 10)
          to label %.preheader118.preheader unwind label %267

.preheader118.preheader:                          ; preds = %271
  %273 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %.188
  %274 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %273, i64 noundef %245) #6
  %275 = load i64, ptr %274, align 8, !tbaa !8
  %276 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.188
  %277 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %276, i64 noundef %245)
  %278 = load i8, ptr %277, align 1, !tbaa !17
  %279 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %276, i64 noundef %245)
  store i8 35, ptr %279, align 1, !tbaa !17
  %.not114147 = icmp eq i64 %245, 0
  br i1 %.not114147, label %.preheader116, label %.preheader

.preheader:                                       ; preds = %.preheader118.preheader, %.loopexit
  %280 = phi i8 [ %368, %.loopexit ], [ %278, %.preheader118.preheader ]
  %281 = phi i64 [ %365, %.loopexit ], [ %275, %.preheader118.preheader ]
  %.082149 = phi i64 [ %.486, %.loopexit ], [ %245, %.preheader118.preheader ]
  %.289148 = phi i64 [ %.6, %.loopexit ], [ %.188, %.preheader118.preheader ]
  %282 = icmp ne i8 %280, 35
  %.neg = sext i1 %282 to i64
  %283 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @ord, i64 0, i64 %.289148
  %284 = add i64 %281, %.neg
  %285 = load i64, ptr @dx2, align 16, !tbaa !8
  %286 = add nsw i64 %285, %.289148
  %287 = load i64, ptr @dy2, align 16, !tbaa !8
  %288 = add nsw i64 %287, %.082149
  %289 = invoke noundef zeroext i1 @_Z2okxx(i64 noundef %286, i64 noundef %288)
          to label %290 unwind label %291

290:                                              ; preds = %.preheader
  br i1 %289, label %293, label %305

291:                                              ; preds = %343, %324, %305, %.preheader
  %292 = landingpad { ptr, i32 }
          cleanup
  br label %384

293:                                              ; preds = %290
  %294 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @ord, i64 0, i64 %286
  %295 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %294, i64 noundef %288) #6
  %296 = load i64, ptr %295, align 8, !tbaa !8
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %283, i64 noundef %.082149) #6
  %298 = load i64, ptr %297, align 8, !tbaa !8
  %299 = icmp sgt i64 %296, %298
  br i1 %299, label %305, label %300

300:                                              ; preds = %293
  %301 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %286
  %302 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %301, i64 noundef %288) #6
  %303 = load i64, ptr %302, align 8, !tbaa !8
  %304 = icmp eq i64 %303, %284
  br i1 %304, label %.loopexit, label %305

305:                                              ; preds = %290, %293, %300
  %306 = load i64, ptr getelementptr inbounds (i8, ptr @dx2, i64 8), align 8, !tbaa !8
  %307 = add nsw i64 %306, %.289148
  %308 = load i64, ptr getelementptr inbounds (i8, ptr @dy2, i64 8), align 8, !tbaa !8
  %309 = add nsw i64 %308, %.082149
  %310 = invoke noundef zeroext i1 @_Z2okxx(i64 noundef %307, i64 noundef %309)
          to label %311 unwind label %291

311:                                              ; preds = %305
  br i1 %310, label %312, label %324

312:                                              ; preds = %311
  %313 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @ord, i64 0, i64 %307
  %314 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %313, i64 noundef %309) #6
  %315 = load i64, ptr %314, align 8, !tbaa !8
  %316 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %283, i64 noundef %.082149) #6
  %317 = load i64, ptr %316, align 8, !tbaa !8
  %318 = icmp sgt i64 %315, %317
  br i1 %318, label %324, label %319

319:                                              ; preds = %312
  %320 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %307
  %321 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %320, i64 noundef %309) #6
  %322 = load i64, ptr %321, align 8, !tbaa !8
  %323 = icmp eq i64 %322, %284
  br i1 %323, label %.loopexit, label %324

324:                                              ; preds = %319, %312, %311
  %325 = load i64, ptr getelementptr inbounds (i8, ptr @dx2, i64 16), align 16, !tbaa !8
  %326 = add nsw i64 %325, %.289148
  %327 = load i64, ptr getelementptr inbounds (i8, ptr @dy2, i64 16), align 16, !tbaa !8
  %328 = add nsw i64 %327, %.082149
  %329 = invoke noundef zeroext i1 @_Z2okxx(i64 noundef %326, i64 noundef %328)
          to label %330 unwind label %291

330:                                              ; preds = %324
  br i1 %329, label %331, label %343

331:                                              ; preds = %330
  %332 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @ord, i64 0, i64 %326
  %333 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %332, i64 noundef %328) #6
  %334 = load i64, ptr %333, align 8, !tbaa !8
  %335 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %283, i64 noundef %.082149) #6
  %336 = load i64, ptr %335, align 8, !tbaa !8
  %337 = icmp sgt i64 %334, %336
  br i1 %337, label %343, label %338

338:                                              ; preds = %331
  %339 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %326
  %340 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %339, i64 noundef %328) #6
  %341 = load i64, ptr %340, align 8, !tbaa !8
  %342 = icmp eq i64 %341, %284
  br i1 %342, label %.loopexit, label %343

343:                                              ; preds = %338, %331, %330
  %344 = load i64, ptr getelementptr inbounds (i8, ptr @dx2, i64 24), align 8, !tbaa !8
  %345 = add nsw i64 %344, %.289148
  %346 = load i64, ptr getelementptr inbounds (i8, ptr @dy2, i64 24), align 8, !tbaa !8
  %347 = add nsw i64 %346, %.082149
  %348 = invoke noundef zeroext i1 @_Z2okxx(i64 noundef %345, i64 noundef %347)
          to label %349 unwind label %291

349:                                              ; preds = %343
  br i1 %348, label %350, label %362

350:                                              ; preds = %349
  %351 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @ord, i64 0, i64 %345
  %352 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %351, i64 noundef %347) #6
  %353 = load i64, ptr %352, align 8, !tbaa !8
  %354 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %283, i64 noundef %.082149) #6
  %355 = load i64, ptr %354, align 8, !tbaa !8
  %356 = icmp sgt i64 %353, %355
  br i1 %356, label %362, label %357

357:                                              ; preds = %350
  %358 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %345
  %359 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %358, i64 noundef %347) #6
  %360 = load i64, ptr %359, align 8, !tbaa !8
  %361 = icmp eq i64 %360, %284
  br i1 %361, label %.loopexit, label %362

362:                                              ; preds = %357, %350, %349
  br label %.loopexit

.loopexit:                                        ; preds = %300, %319, %338, %357, %362
  %.6 = phi i64 [ %286, %300 ], [ %307, %319 ], [ %326, %338 ], [ %345, %357 ], [ %.289148, %362 ]
  %.486 = phi i64 [ %288, %300 ], [ %309, %319 ], [ %328, %338 ], [ %347, %357 ], [ %.082149, %362 ]
  %363 = getelementptr inbounds [200000 x %"class.std::vector"], ptr @dp, i64 0, i64 %.6
  %364 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %363, i64 noundef %.486) #6
  %365 = load i64, ptr %364, align 8, !tbaa !8
  %366 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.6
  %367 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %366, i64 noundef %.486)
  %368 = load i8, ptr %367, align 1, !tbaa !17
  %369 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %366, i64 noundef %.486)
  store i8 35, ptr %369, align 1, !tbaa !17
  %.not114 = icmp eq i64 %.486, 0
  br i1 %.not114, label %.preheader116, label %.preheader

.preheader116:                                    ; preds = %.loopexit, %.preheader118.preheader
  %370 = load i64, ptr @N, align 8, !tbaa !8
  %371 = icmp sgt i64 %370, 0
  br i1 %371, label %.lr.ph138, label %.loopexit117

.lr.ph138:                                        ; preds = %.preheader116, %376
  %.0137 = phi i64 [ %377, %376 ], [ 0, %.preheader116 ]
  %372 = getelementptr inbounds [200000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.0137
  %373 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %372)
          to label %374 unwind label %380

374:                                              ; preds = %.lr.ph138
  %375 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %373, i8 noundef signext 10)
          to label %376 unwind label %380

376:                                              ; preds = %374
  %377 = add nuw nsw i64 %.0137, 1
  %378 = load i64, ptr @N, align 8, !tbaa !8
  %379 = icmp slt i64 %377, %378
  br i1 %379, label %.lr.ph138, label %.loopexit117, !llvm.loop !25

380:                                              ; preds = %374, %.lr.ph138
  %381 = landingpad { ptr, i32 }
          cleanup
  br label %384

.loopexit117:                                     ; preds = %376, %.preheader116, %265
  call void @_ZNSt5dequeISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #6
  %382 = load i64, ptr @T, align 8, !tbaa !8
  %383 = add nsw i64 %382, -1
  store i64 %383, ptr @T, align 8, !tbaa !8
  %.not = icmp eq i64 %382, 0
  br i1 %.not, label %._crit_edge142, label %.lr.ph141

384:                                              ; preds = %242, %380, %291, %267, %70
  %.pn106.pn = phi { ptr, i32 } [ %.pn106, %70 ], [ %.pn102.pn, %242 ], [ %268, %267 ], [ %381, %380 ], [ %292, %291 ]
  call void @_ZNSt5dequeISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn106.pn

._crit_edge142:                                   ; preds = %.loopexit117, %0
  ret i32 0
}

; 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 zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #4

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; 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 #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxxEC2IRxiTnNSt9enable_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 4 dereferenceable(4)) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_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 #2 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 #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeISt4pairIxxESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) 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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !16}
!19 = !{!20, !9, i64 0}
!20 = !{!"_ZTSSt4pairIxxE", !9, i64 0, !9, i64 8}
!21 = !{!20, !9, i64 8}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}


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