; LLVM IR from eyangch/competitive-programming :: AdventOfCode/2022/day12/day12.1 (main)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<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 }
%class.anon = type { i8 }

@dx = external dso_local global [4 x i64], align 16
@dy = external dso_local global [4 x i64], align 16
@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@_Z1SB5cxx11 = external dso_local global %"class.std::vector", align 8
@D = external dso_local global [1000 x [1000 x i64]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

29:                                               ; preds = %47, %0
  %30 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %2)
          to label %31 unwind label %42

31:                                               ; preds = %29
  %32 = load ptr, ptr %30, align 8, !tbaa !5
  %33 = getelementptr i8, ptr %32, i64 -24
  %34 = load i64, ptr %33, align 8
  %35 = getelementptr inbounds i8, ptr %30, i64 %34
  %36 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %35)
          to label %37 unwind label %42

37:                                               ; preds = %31
  br i1 %36, label %38, label %48

38:                                               ; preds = %37
  %39 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  %40 = icmp eq i64 %39, 0
  br i1 %40, label %41, label %46

41:                                               ; preds = %38
  br label %48

42:                                               ; preds = %46, %31, %29
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %3, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %4, align 4
  br label %268

46:                                               ; preds = %38
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %47 unwind label %42

47:                                               ; preds = %46
  br label %29, !llvm.loop !8

48:                                               ; preds = %41, %37
  %49 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11) #7
  store i64 %49, ptr @N, align 8, !tbaa !10
  %50 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef 0) #7
  %51 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %50) #7
  store i64 %51, ptr @M, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !10
  br label %52

52:                                               ; preds = %106, %48
  %53 = load i64, ptr %9, align 8, !tbaa !10
  %54 = load i64, ptr @N, align 8, !tbaa !10
  %55 = icmp slt i64 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 4, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %109

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !10
  br label %58

58:                                               ; preds = %102, %57
  %59 = load i64, ptr %11, align 8, !tbaa !10
  %60 = load i64, ptr @M, align 8, !tbaa !10
  %61 = icmp slt i64 %59, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  store i32 7, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %105

63:                                               ; preds = %58
  %64 = load i64, ptr %9, align 8, !tbaa !10
  %65 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %64) #7
  %66 = load i64, ptr %11, align 8, !tbaa !10
  %67 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %65, i64 noundef %66)
          to label %68 unwind label %80

68:                                               ; preds = %63
  %69 = load i8, ptr %67, align 1, !tbaa !13
  %70 = sext i8 %69 to i32
  %71 = icmp eq i32 %70, 83
  br i1 %71, label %72, label %84

72:                                               ; preds = %68
  %73 = load i64, ptr %9, align 8, !tbaa !10
  store i64 %73, ptr %5, align 8, !tbaa !10
  %74 = load i64, ptr %11, align 8, !tbaa !10
  store i64 %74, ptr %6, align 8, !tbaa !10
  %75 = load i64, ptr %9, align 8, !tbaa !10
  %76 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %75) #7
  %77 = load i64, ptr %11, align 8, !tbaa !10
  %78 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %76, i64 noundef %77)
          to label %79 unwind label %80

79:                                               ; preds = %72
  store i8 97, ptr %78, align 1, !tbaa !13
  br label %84

80:                                               ; preds = %93, %84, %72, %63
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %3, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %267

84:                                               ; preds = %79, %68
  %85 = load i64, ptr %9, align 8, !tbaa !10
  %86 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %85) #7
  %87 = load i64, ptr %11, align 8, !tbaa !10
  %88 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %86, i64 noundef %87)
          to label %89 unwind label %80

89:                                               ; preds = %84
  %90 = load i8, ptr %88, align 1, !tbaa !13
  %91 = sext i8 %90 to i32
  %92 = icmp eq i32 %91, 69
  br i1 %92, label %93, label %101

93:                                               ; preds = %89
  %94 = load i64, ptr %9, align 8, !tbaa !10
  store i64 %94, ptr %7, align 8, !tbaa !10
  %95 = load i64, ptr %11, align 8, !tbaa !10
  store i64 %95, ptr %8, align 8, !tbaa !10
  %96 = load i64, ptr %9, align 8, !tbaa !10
  %97 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %96) #7
  %98 = load i64, ptr %11, align 8, !tbaa !10
  %99 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %97, i64 noundef %98)
          to label %100 unwind label %80

100:                                              ; preds = %93
  store i8 122, ptr %99, align 1, !tbaa !13
  br label %101

101:                                              ; preds = %100, %89
  br label %102

102:                                              ; preds = %101
  %103 = load i64, ptr %11, align 8, !tbaa !10
  %104 = add nsw i64 %103, 1
  store i64 %104, ptr %11, align 8, !tbaa !10
  br label %58, !llvm.loop !14

105:                                              ; preds = %62
  br label %106

106:                                              ; preds = %105
  %107 = load i64, ptr %9, align 8, !tbaa !10
  %108 = add nsw i64 %107, 1
  store i64 %108, ptr %9, align 8, !tbaa !10
  br label %52, !llvm.loop !15

109:                                              ; preds = %56
  call void @llvm.lifetime.start.p0(i64 80, ptr %12) #7
  invoke void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
          to label %110 unwind label %118

110:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  invoke void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_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) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %111 unwind label %122

111:                                              ; preds = %110
  invoke void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %12, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %112 unwind label %122

112:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 0, ptr %14, align 8, !tbaa !10
  br label %113

113:                                              ; preds = %141, %112
  %114 = load i64, ptr %14, align 8, !tbaa !10
  %115 = load i64, ptr @N, align 8, !tbaa !10
  %116 = icmp slt i64 %114, %115
  br i1 %116, label %126, label %117

117:                                              ; preds = %113
  store i32 10, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %144

118:                                              ; preds = %109
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %3, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %4, align 4
  br label %266

122:                                              ; preds = %111, %110
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %3, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  br label %265

126:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !10
  br label %127

127:                                              ; preds = %137, %126
  %128 = load i64, ptr %15, align 8, !tbaa !10
  %129 = load i64, ptr @M, align 8, !tbaa !10
  %130 = icmp slt i64 %128, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %127
  store i32 13, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %140

132:                                              ; preds = %127
  %133 = load i64, ptr %14, align 8, !tbaa !10
  %134 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %133
  %135 = load i64, ptr %15, align 8, !tbaa !10
  %136 = getelementptr inbounds [1000 x i64], ptr %134, i64 0, i64 %135
  store i64 -1, ptr %136, align 8, !tbaa !10
  br label %137

137:                                              ; preds = %132
  %138 = load i64, ptr %15, align 8, !tbaa !10
  %139 = add nsw i64 %138, 1
  store i64 %139, ptr %15, align 8, !tbaa !10
  br label %127, !llvm.loop !16

140:                                              ; preds = %131
  br label %141

141:                                              ; preds = %140
  %142 = load i64, ptr %14, align 8, !tbaa !10
  %143 = add nsw i64 %142, 1
  store i64 %143, ptr %14, align 8, !tbaa !10
  br label %113, !llvm.loop !17

144:                                              ; preds = %117
  %145 = load i64, ptr %5, align 8, !tbaa !10
  %146 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %145
  %147 = load i64, ptr %6, align 8, !tbaa !10
  %148 = getelementptr inbounds [1000 x i64], ptr %146, i64 0, i64 %147
  store i64 0, ptr %148, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  br label %149

149:                                              ; preds = %250, %144
  %150 = invoke noundef zeroext i1 @_ZNKSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
          to label %151 unwind label %167

151:                                              ; preds = %149
  %152 = xor i1 %150, true
  br i1 %152, label %153, label %253

153:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %154 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
          to label %155 unwind label %171

155:                                              ; preds = %153
  %156 = getelementptr inbounds %"struct.std::pair", ptr %154, i32 0, i32 0
  %157 = load i64, ptr %156, align 8, !tbaa !18
  store i64 %157, ptr %17, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %158 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
          to label %159 unwind label %175

159:                                              ; preds = %155
  %160 = getelementptr inbounds %"struct.std::pair", ptr %158, i32 0, i32 1
  %161 = load i64, ptr %160, align 8, !tbaa !20
  store i64 %161, ptr %18, align 8, !tbaa !10
  invoke void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
          to label %162 unwind label %175

162:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 0, ptr %19, align 8, !tbaa !10
  br label %163

163:                                              ; preds = %242, %162
  %164 = load i64, ptr %19, align 8, !tbaa !10
  %165 = icmp slt i64 %164, 4
  br i1 %165, label %179, label %166

166:                                              ; preds = %163
  store i32 18, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %250

167:                                              ; preds = %260, %253, %149
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %3, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %4, align 4
  br label %264

171:                                              ; preds = %153
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %3, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %4, align 4
  br label %252

175:                                              ; preds = %159, %155
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %3, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %4, align 4
  br label %251

179:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %180 = load i64, ptr %17, align 8, !tbaa !10
  %181 = load i64, ptr %19, align 8, !tbaa !10
  %182 = getelementptr inbounds [4 x i64], ptr @dx, i64 0, i64 %181
  %183 = load i64, ptr %182, align 8, !tbaa !10
  %184 = add nsw i64 %180, %183
  store i64 %184, ptr %20, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %185 = load i64, ptr %18, align 8, !tbaa !10
  %186 = load i64, ptr %19, align 8, !tbaa !10
  %187 = getelementptr inbounds [4 x i64], ptr @dy, i64 0, i64 %186
  %188 = load i64, ptr %187, align 8, !tbaa !10
  %189 = add nsw i64 %185, %188
  store i64 %189, ptr %21, align 8, !tbaa !10
  %190 = load i64, ptr %20, align 8, !tbaa !10
  %191 = load i64, ptr %21, align 8, !tbaa !10
  %192 = invoke noundef zeroext i1 @"_ZZ4mainENK3$_0clExx"(ptr noundef nonnull align 1 dereferenceable(1) %16, i64 noundef %190, i64 noundef %191)
          to label %193 unwind label %195

193:                                              ; preds = %179
  br i1 %192, label %199, label %194

194:                                              ; preds = %193
  store i32 20, ptr %10, align 4
  br label %239

195:                                              ; preds = %213, %208, %179
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %3, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %4, align 4
  br label %249

199:                                              ; preds = %193
  %200 = load i64, ptr %20, align 8, !tbaa !10
  %201 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %200
  %202 = load i64, ptr %21, align 8, !tbaa !10
  %203 = getelementptr inbounds [1000 x i64], ptr %201, i64 0, i64 %202
  %204 = load i64, ptr %203, align 8, !tbaa !10
  %205 = xor i64 %204, -1
  %206 = icmp ne i64 %205, 0
  br i1 %206, label %207, label %208

207:                                              ; preds = %199
  store i32 20, ptr %10, align 4
  br label %239

208:                                              ; preds = %199
  %209 = load i64, ptr %20, align 8, !tbaa !10
  %210 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %209) #7
  %211 = load i64, ptr %21, align 8, !tbaa !10
  %212 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %210, i64 noundef %211)
          to label %213 unwind label %195

213:                                              ; preds = %208
  %214 = load i8, ptr %212, align 1, !tbaa !13
  %215 = sext i8 %214 to i32
  %216 = load i64, ptr %17, align 8, !tbaa !10
  %217 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %216) #7
  %218 = load i64, ptr %18, align 8, !tbaa !10
  %219 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %217, i64 noundef %218)
          to label %220 unwind label %195

220:                                              ; preds = %213
  %221 = load i8, ptr %219, align 1, !tbaa !13
  %222 = sext i8 %221 to i32
  %223 = add nsw i32 %222, 1
  %224 = icmp sgt i32 %215, %223
  br i1 %224, label %225, label %226

225:                                              ; preds = %220
  store i32 20, ptr %10, align 4
  br label %239

226:                                              ; preds = %220
  %227 = load i64, ptr %17, align 8, !tbaa !10
  %228 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %227
  %229 = load i64, ptr %18, align 8, !tbaa !10
  %230 = getelementptr inbounds [1000 x i64], ptr %228, i64 0, i64 %229
  %231 = load i64, ptr %230, align 8, !tbaa !10
  %232 = add nsw i64 %231, 1
  %233 = load i64, ptr %20, align 8, !tbaa !10
  %234 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %233
  %235 = load i64, ptr %21, align 8, !tbaa !10
  %236 = getelementptr inbounds [1000 x i64], ptr %234, i64 0, i64 %235
  store i64 %232, ptr %236, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  invoke void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %237 unwind label %245

237:                                              ; preds = %226
  invoke void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %12, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %238 unwind label %245

238:                                              ; preds = %237
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  store i32 0, ptr %10, align 4
  br label %239

239:                                              ; preds = %238, %225, %207, %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  %240 = load i32, ptr %10, align 4
  switch i32 %240, label %274 [
    i32 0, label %241
    i32 20, label %242
  ]

241:                                              ; preds = %239
  br label %242

242:                                              ; preds = %241, %239
  %243 = load i64, ptr %19, align 8, !tbaa !10
  %244 = add nsw i64 %243, 1
  store i64 %244, ptr %19, align 8, !tbaa !10
  br label %163, !llvm.loop !21

245:                                              ; preds = %237, %226
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %3, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  br label %249

249:                                              ; preds = %245, %195
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %251

250:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %149, !llvm.loop !22

251:                                              ; preds = %249, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %252

252:                                              ; preds = %251, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %264

253:                                              ; preds = %151
  %254 = load i64, ptr %7, align 8, !tbaa !10
  %255 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %254
  %256 = load i64, ptr %8, align 8, !tbaa !10
  %257 = getelementptr inbounds [1000 x i64], ptr %255, i64 0, i64 %256
  %258 = load i64, ptr %257, align 8, !tbaa !10
  %259 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %258)
          to label %260 unwind label %167

260:                                              ; preds = %253
  %261 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %259, i8 noundef signext 10)
          to label %262 unwind label %167

262:                                              ; preds = %260
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %12) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
  %263 = load i32, ptr %1, align 4
  ret i32 %263

264:                                              ; preds = %252, %167
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  br label %265

265:                                              ; preds = %264, %122
  call void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %12) #7
  br label %266

266:                                              ; preds = %265, %118
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #7
  br label %267

267:                                              ; preds = %266, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %268

268:                                              ; preds = %267, %42
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #7
  br label %269

269:                                              ; preds = %268
  %270 = load ptr, ptr %3, align 8
  %271 = load i32, ptr %4, align 4
  %272 = insertvalue { ptr, i32 } poison, ptr %270, 0
  %273 = insertvalue { ptr, i32 } %272, i32 %271, 1
  resume { ptr, i32 } %273

274:                                              ; preds = %239
  unreachable
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #5 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(16)) #5 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 #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @"_ZZ4mainENK3$_0clExx"(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef, i64 noundef) #6 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) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 align 2

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<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 }
%class.anon = type { i8 }

@dx = external dso_local local_unnamed_addr global [4 x i64], align 16
@dy = external dso_local local_unnamed_addr global [4 x i64], align 16
@N = external dso_local local_unnamed_addr global i64, align 8
@M = external dso_local local_unnamed_addr global i64, align 8
@_Z1SB5cxx11 = external dso_local global %"class.std::vector", align 8
@D = external dso_local local_unnamed_addr global [1000 x [1000 x i64]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::queue", align 8
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca %class.anon, align 1
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.std::pair", align 8
  %10 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %11 = getelementptr i8, ptr %10, i64 -24
  %12 = load i64, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %12
  %14 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %13, ptr noundef null)
  %15 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  br label %16

16:                                               ; preds = %30, %0
  %17 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %18 unwind label %28

18:                                               ; preds = %16
  %19 = load ptr, ptr %17, align 8, !tbaa !5
  %20 = getelementptr i8, ptr %19, i64 -24
  %21 = load i64, ptr %20, align 8
  %22 = getelementptr inbounds i8, ptr %17, i64 %21
  %23 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %22)
          to label %24 unwind label %28

24:                                               ; preds = %18
  br i1 %23, label %25, label %31

25:                                               ; preds = %24
  %26 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  %27 = icmp eq i64 %26, 0
  br i1 %27, label %31, label %30

28:                                               ; preds = %30, %18, %16
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %230

30:                                               ; preds = %25
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %16 unwind label %28, !llvm.loop !8

31:                                               ; preds = %25, %24
  %32 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11) #8
  store i64 %32, ptr @N, align 8, !tbaa !10
  %33 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef 0) #8
  %34 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %33) #8
  store i64 %34, ptr @M, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %35 = load i64, ptr @N, align 8, !tbaa !10
  %36 = icmp sgt i64 %35, 0
  %37 = icmp sgt i64 %34, 0
  %or.cond = and i1 %36, %37
  br i1 %or.cond, label %.preheader55, label %._crit_edge63

.preheader55:                                     ; preds = %31, %._crit_edge
  %38 = phi i64 [ %41, %._crit_edge ], [ %35, %31 ]
  %39 = phi i64 [ %42, %._crit_edge ], [ %34, %31 ]
  %.04462 = phi i64 [ %43, %._crit_edge ], [ 0, %31 ]
  %.04561 = phi i64 [ %.146.lcssa, %._crit_edge ], [ undef, %31 ]
  %.04860 = phi i64 [ %.149.lcssa, %._crit_edge ], [ undef, %31 ]
  %40 = icmp sgt i64 %39, 0
  br i1 %40, label %.lr.ph, label %._crit_edge

._crit_edge63:                                    ; preds = %._crit_edge, %31
  %.048.lcssa = phi i64 [ undef, %31 ], [ %.149.lcssa, %._crit_edge ]
  %.045.lcssa = phi i64 [ undef, %31 ], [ %.146.lcssa, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #8
  invoke void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
          to label %64 unwind label %87

._crit_edge.loopexit:                             ; preds = %60
  %.pre = load i64, ptr @N, align 8, !tbaa !10
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader55
  %41 = phi i64 [ %38, %.preheader55 ], [ %.pre, %._crit_edge.loopexit ]
  %42 = phi i64 [ %39, %.preheader55 ], [ %62, %._crit_edge.loopexit ]
  %.149.lcssa = phi i64 [ %.04860, %.preheader55 ], [ %.250, %._crit_edge.loopexit ]
  %.146.lcssa = phi i64 [ %.04561, %.preheader55 ], [ %.247, %._crit_edge.loopexit ]
  %43 = add nuw nsw i64 %.04462, 1
  %44 = icmp slt i64 %43, %41
  br i1 %44, label %.preheader55, label %._crit_edge63, !llvm.loop !13

.lr.ph:                                           ; preds = %.preheader55, %60
  %.04358 = phi i64 [ %61, %60 ], [ 0, %.preheader55 ]
  %.14657 = phi i64 [ %.247, %60 ], [ %.04561, %.preheader55 ]
  %.14956 = phi i64 [ %.250, %60 ], [ %.04860, %.preheader55 ]
  %45 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %.04462) #8
  %46 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %45, i64 noundef %.04358)
  %47 = load i8, ptr %46, align 1, !tbaa !15
  %48 = icmp eq i8 %47, 83
  br i1 %48, label %49, label %52

49:                                               ; preds = %.lr.ph
  store i64 %.04462, ptr %2, align 8, !tbaa !10
  store i64 %.04358, ptr %3, align 8, !tbaa !10
  %50 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %.04462) #8
  %51 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %50, i64 noundef %.04358)
  store i8 97, ptr %51, align 1, !tbaa !15
  br label %52

52:                                               ; preds = %49, %.lr.ph
  %53 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %.04462) #8
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %53, i64 noundef %.04358)
  %55 = load i8, ptr %54, align 1, !tbaa !15
  %56 = icmp eq i8 %55, 69
  br i1 %56, label %57, label %60

57:                                               ; preds = %52
  %58 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %.04462) #8
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %58, i64 noundef %.04358)
  store i8 122, ptr %59, align 1, !tbaa !15
  br label %60

60:                                               ; preds = %52, %57
  %.250 = phi i64 [ %.04462, %57 ], [ %.14956, %52 ]
  %.247 = phi i64 [ %.04358, %57 ], [ %.14657, %52 ]
  %61 = add nuw nsw i64 %.04358, 1
  %62 = load i64, ptr @M, align 8, !tbaa !10
  %63 = icmp slt i64 %61, %62
  br i1 %63, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !16

64:                                               ; preds = %._crit_edge63
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_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) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
  invoke void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %65 unwind label %89

65:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  %66 = load i64, ptr @N, align 8, !tbaa !10
  %67 = icmp sgt i64 %66, 0
  br i1 %67, label %.preheader.lr.ph, label %._crit_edge71

.preheader.lr.ph:                                 ; preds = %65
  %68 = load i64, ptr @M, align 8, !tbaa !10
  %69 = icmp sgt i64 %68, 0
  br i1 %69, label %.preheader.us.preheader, label %._crit_edge71

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %70 = shl nuw i64 %68, 3
  %xtraiter = and i64 %66, 7
  %71 = icmp ult i64 %66, 8
  br i1 %71, label %._crit_edge71.loopexit.unr-lcssa, label %.preheader.us.preheader.new

.preheader.us.preheader.new:                      ; preds = %.preheader.us.preheader
  %unroll_iter = and i64 %66, 9223372036854775800
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us, %.preheader.us.preheader.new
  %.04270.us = phi i64 [ 0, %.preheader.us.preheader.new ], [ %80, %.preheader.us ]
  %niter = phi i64 [ 0, %.preheader.us.preheader.new ], [ %niter.next.7, %.preheader.us ]
  %72 = mul nuw nsw i64 %.04270.us, 8000
  %scevgep = getelementptr i8, ptr @D, i64 %72
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep, i8 -1, i64 %70, i1 false), !tbaa !10
  %73 = mul nuw i64 %.04270.us, 8000
  %gep = getelementptr i8, ptr getelementptr (i8, ptr @D, i64 8000), i64 %73
  call void @llvm.memset.p0.i64(ptr align 16 %gep, i8 -1, i64 %70, i1 false), !tbaa !10
  %74 = mul nuw i64 %.04270.us, 8000
  %gep80 = getelementptr i8, ptr getelementptr (i8, ptr @D, i64 16000), i64 %74
  call void @llvm.memset.p0.i64(ptr align 16 %gep80, i8 -1, i64 %70, i1 false), !tbaa !10
  %75 = mul nuw i64 %.04270.us, 8000
  %gep81 = getelementptr i8, ptr getelementptr (i8, ptr @D, i64 24000), i64 %75
  call void @llvm.memset.p0.i64(ptr align 16 %gep81, i8 -1, i64 %70, i1 false), !tbaa !10
  %76 = mul nuw i64 %.04270.us, 8000
  %gep82 = getelementptr i8, ptr getelementptr (i8, ptr @D, i64 32000), i64 %76
  call void @llvm.memset.p0.i64(ptr align 16 %gep82, i8 -1, i64 %70, i1 false), !tbaa !10
  %77 = mul nuw i64 %.04270.us, 8000
  %gep83 = getelementptr i8, ptr getelementptr (i8, ptr @D, i64 40000), i64 %77
  call void @llvm.memset.p0.i64(ptr align 16 %gep83, i8 -1, i64 %70, i1 false), !tbaa !10
  %78 = mul nuw i64 %.04270.us, 8000
  %gep84 = getelementptr i8, ptr getelementptr (i8, ptr @D, i64 48000), i64 %78
  call void @llvm.memset.p0.i64(ptr align 16 %gep84, i8 -1, i64 %70, i1 false), !tbaa !10
  %79 = mul nuw i64 %.04270.us, 8000
  %gep85 = getelementptr i8, ptr getelementptr (i8, ptr @D, i64 56000), i64 %79
  call void @llvm.memset.p0.i64(ptr align 16 %gep85, i8 -1, i64 %70, i1 false), !tbaa !10
  %80 = add nuw nsw i64 %.04270.us, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge71.loopexit.unr-lcssa, label %.preheader.us, !llvm.loop !17

._crit_edge71.loopexit.unr-lcssa:                 ; preds = %.preheader.us, %.preheader.us.preheader
  %.04270.us.unr = phi i64 [ 0, %.preheader.us.preheader ], [ %80, %.preheader.us ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge71, label %.preheader.us.epil

.preheader.us.epil:                               ; preds = %._crit_edge71.loopexit.unr-lcssa, %.preheader.us.epil
  %.04270.us.epil = phi i64 [ %82, %.preheader.us.epil ], [ %.04270.us.unr, %._crit_edge71.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader.us.epil ], [ 0, %._crit_edge71.loopexit.unr-lcssa ]
  %81 = mul nuw nsw i64 %.04270.us.epil, 8000
  %scevgep.epil = getelementptr i8, ptr @D, i64 %81
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep.epil, i8 -1, i64 %70, i1 false), !tbaa !10
  %82 = add nuw nsw i64 %.04270.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge71, label %.preheader.us.epil, !llvm.loop !18

._crit_edge71:                                    ; preds = %._crit_edge71.loopexit.unr-lcssa, %.preheader.us.epil, %.preheader.lr.ph, %65
  %83 = load i64, ptr %2, align 8, !tbaa !10
  %84 = load i64, ptr %3, align 8, !tbaa !10
  %85 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %83, i64 %84
  store i64 0, ptr %85, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  %86 = call noundef zeroext i1 @_ZNKSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  br i1 %86, label %._crit_edge75, label %.lr.ph74

87:                                               ; preds = %._crit_edge63
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %229

89:                                               ; preds = %64
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  br label %228

.lr.ph74:                                         ; preds = %._crit_edge71, %.loopexit
  %91 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  %92 = load i64, ptr %91, align 8, !tbaa !20
  %93 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  %94 = getelementptr inbounds i8, ptr %93, i64 8
  %95 = load i64, ptr %94, align 8, !tbaa !22
  call void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  %96 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %92, i64 %95
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %97 = load i64, ptr @dx, align 16, !tbaa !10
  %98 = add nsw i64 %97, %92
  store i64 %98, ptr %7, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %99 = load i64, ptr @dy, align 16, !tbaa !10
  %100 = add nsw i64 %99, %95
  store i64 %100, ptr %8, align 8, !tbaa !10
  %101 = call noundef zeroext i1 @"_ZZ4mainENK3$_0clExx"(ptr noundef nonnull align 1 dereferenceable(1) %6, i64 noundef %98, i64 noundef %100)
  br i1 %101, label %104, label %128

102:                                              ; preds = %224, %._crit_edge75
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %227

104:                                              ; preds = %.lr.ph74
  %105 = load i64, ptr %7, align 8, !tbaa !10
  %106 = load i64, ptr %8, align 8, !tbaa !10
  %107 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %105, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !10
  %.not = icmp eq i64 %108, -1
  br i1 %.not, label %109, label %128

109:                                              ; preds = %104
  %110 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %105) #8
  %111 = load i64, ptr %8, align 8, !tbaa !10
  %112 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %110, i64 noundef %111)
  %113 = load i8, ptr %112, align 1, !tbaa !15
  %114 = sext i8 %113 to i32
  %115 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %92) #8
  %116 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %115, i64 noundef %95)
  %117 = load i8, ptr %116, align 1, !tbaa !15
  %118 = sext i8 %117 to i32
  %119 = add nsw i32 %118, 1
  %120 = icmp slt i32 %119, %114
  br i1 %120, label %128, label %121

121:                                              ; preds = %109
  %122 = load i64, ptr %96, align 8, !tbaa !10
  %123 = add nsw i64 %122, 1
  %124 = load i64, ptr %7, align 8, !tbaa !10
  %125 = load i64, ptr %8, align 8, !tbaa !10
  %126 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %124, i64 %125
  store i64 %123, ptr %126, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  invoke void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %127 unwind label %219

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

128:                                              ; preds = %109, %104, %.lr.ph74, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %129 = load i64, ptr getelementptr inbounds (i8, ptr @dx, i64 8), align 8, !tbaa !10
  %130 = add nsw i64 %129, %92
  store i64 %130, ptr %7, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %131 = load i64, ptr getelementptr inbounds (i8, ptr @dy, i64 8), align 8, !tbaa !10
  %132 = add nsw i64 %131, %95
  store i64 %132, ptr %8, align 8, !tbaa !10
  %133 = call noundef zeroext i1 @"_ZZ4mainENK3$_0clExx"(ptr noundef nonnull align 1 dereferenceable(1) %6, i64 noundef %130, i64 noundef %132)
  br i1 %133, label %134, label %158

134:                                              ; preds = %128
  %135 = load i64, ptr %7, align 8, !tbaa !10
  %136 = load i64, ptr %8, align 8, !tbaa !10
  %137 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %135, i64 %136
  %138 = load i64, ptr %137, align 8, !tbaa !10
  %.not.1 = icmp eq i64 %138, -1
  br i1 %.not.1, label %139, label %158

139:                                              ; preds = %134
  %140 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %135) #8
  %141 = load i64, ptr %8, align 8, !tbaa !10
  %142 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %140, i64 noundef %141)
  %143 = load i8, ptr %142, align 1, !tbaa !15
  %144 = sext i8 %143 to i32
  %145 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %92) #8
  %146 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %145, i64 noundef %95)
  %147 = load i8, ptr %146, align 1, !tbaa !15
  %148 = sext i8 %147 to i32
  %149 = add nsw i32 %148, 1
  %150 = icmp slt i32 %149, %144
  br i1 %150, label %158, label %151

151:                                              ; preds = %139
  %152 = load i64, ptr %96, align 8, !tbaa !10
  %153 = add nsw i64 %152, 1
  %154 = load i64, ptr %7, align 8, !tbaa !10
  %155 = load i64, ptr %8, align 8, !tbaa !10
  %156 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %154, i64 %155
  store i64 %153, ptr %156, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  invoke void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %157 unwind label %219

157:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  br label %158

158:                                              ; preds = %157, %139, %134, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %159 = load i64, ptr getelementptr inbounds (i8, ptr @dx, i64 16), align 16, !tbaa !10
  %160 = add nsw i64 %159, %92
  store i64 %160, ptr %7, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %161 = load i64, ptr getelementptr inbounds (i8, ptr @dy, i64 16), align 16, !tbaa !10
  %162 = add nsw i64 %161, %95
  store i64 %162, ptr %8, align 8, !tbaa !10
  %163 = call noundef zeroext i1 @"_ZZ4mainENK3$_0clExx"(ptr noundef nonnull align 1 dereferenceable(1) %6, i64 noundef %160, i64 noundef %162)
  br i1 %163, label %164, label %188

164:                                              ; preds = %158
  %165 = load i64, ptr %7, align 8, !tbaa !10
  %166 = load i64, ptr %8, align 8, !tbaa !10
  %167 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %165, i64 %166
  %168 = load i64, ptr %167, align 8, !tbaa !10
  %.not.2 = icmp eq i64 %168, -1
  br i1 %.not.2, label %169, label %188

169:                                              ; preds = %164
  %170 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %165) #8
  %171 = load i64, ptr %8, align 8, !tbaa !10
  %172 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %170, i64 noundef %171)
  %173 = load i8, ptr %172, align 1, !tbaa !15
  %174 = sext i8 %173 to i32
  %175 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %92) #8
  %176 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %175, i64 noundef %95)
  %177 = load i8, ptr %176, align 1, !tbaa !15
  %178 = sext i8 %177 to i32
  %179 = add nsw i32 %178, 1
  %180 = icmp slt i32 %179, %174
  br i1 %180, label %188, label %181

181:                                              ; preds = %169
  %182 = load i64, ptr %96, align 8, !tbaa !10
  %183 = add nsw i64 %182, 1
  %184 = load i64, ptr %7, align 8, !tbaa !10
  %185 = load i64, ptr %8, align 8, !tbaa !10
  %186 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %184, i64 %185
  store i64 %183, ptr %186, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  invoke void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %187 unwind label %219

187:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  br label %188

188:                                              ; preds = %187, %169, %164, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %189 = load i64, ptr getelementptr inbounds (i8, ptr @dx, i64 24), align 8, !tbaa !10
  %190 = add nsw i64 %189, %92
  store i64 %190, ptr %7, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %191 = load i64, ptr getelementptr inbounds (i8, ptr @dy, i64 24), align 8, !tbaa !10
  %192 = add nsw i64 %191, %95
  store i64 %192, ptr %8, align 8, !tbaa !10
  %193 = call noundef zeroext i1 @"_ZZ4mainENK3$_0clExx"(ptr noundef nonnull align 1 dereferenceable(1) %6, i64 noundef %190, i64 noundef %192)
  br i1 %193, label %194, label %.loopexit

194:                                              ; preds = %188
  %195 = load i64, ptr %7, align 8, !tbaa !10
  %196 = load i64, ptr %8, align 8, !tbaa !10
  %197 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %195, i64 %196
  %198 = load i64, ptr %197, align 8, !tbaa !10
  %.not.3 = icmp eq i64 %198, -1
  br i1 %.not.3, label %199, label %.loopexit

199:                                              ; preds = %194
  %200 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %195) #8
  %201 = load i64, ptr %8, align 8, !tbaa !10
  %202 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %200, i64 noundef %201)
  %203 = load i8, ptr %202, align 1, !tbaa !15
  %204 = sext i8 %203 to i32
  %205 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_Z1SB5cxx11, i64 noundef %92) #8
  %206 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %205, i64 noundef %95)
  %207 = load i8, ptr %206, align 1, !tbaa !15
  %208 = sext i8 %207 to i32
  %209 = add nsw i32 %208, 1
  %210 = icmp slt i32 %209, %204
  br i1 %210, label %.loopexit, label %211

211:                                              ; preds = %199
  %212 = load i64, ptr %96, align 8, !tbaa !10
  %213 = add nsw i64 %212, 1
  %214 = load i64, ptr %7, align 8, !tbaa !10
  %215 = load i64, ptr %8, align 8, !tbaa !10
  %216 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %214, i64 %215
  store i64 %213, ptr %216, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @_ZNSt4pairIxxEC2IRxS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  invoke void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %217 unwind label %219

217:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  br label %.loopexit

.loopexit:                                        ; preds = %217, %199, %194, %188
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %218 = call noundef zeroext i1 @_ZNKSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %4)
  br i1 %218, label %._crit_edge75, label %.lr.ph74, !llvm.loop !23

219:                                              ; preds = %211, %181, %151, %121
  %220 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %227

._crit_edge75:                                    ; preds = %.loopexit, %._crit_edge71
  %221 = getelementptr inbounds [1000 x [1000 x i64]], ptr @D, i64 0, i64 %.048.lcssa, i64 %.045.lcssa
  %222 = load i64, ptr %221, align 8, !tbaa !10
  %223 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %222)
          to label %224 unwind label %102

224:                                              ; preds = %._crit_edge75
  %225 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %223, i8 noundef signext 10)
          to label %226 unwind label %102

226:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  ret i32 0

227:                                              ; preds = %219, %102
  %.pn = phi { ptr, i32 } [ %220, %219 ], [ %103, %102 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  br label %228

228:                                              ; preds = %227, %89
  %.pn.pn = phi { ptr, i32 } [ %.pn, %227 ], [ %90, %89 ]
  call void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #8
  br label %229

229:                                              ; preds = %228, %87
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %228 ], [ %88, %87 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  br label %230

230:                                              ; preds = %229, %28
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %229 ], [ %29, %28 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #5 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueISt4pairIxxESt5dequeIS1_SaIS1_EEE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 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 #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @"_ZZ4mainENK3$_0clExx"(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef, i64 noundef) local_unnamed_addr #6 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 #4

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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

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

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


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